> >> Here it is the modification I have done : >> https://bitbucket.org/yml/uwsgi-emperor-template-configuration/src >> >> So my plan is to have multiple virtualenv in this directory structure. >> One >> called "uwsgi-tip" that would be a sibling of vassal-sites, it will be >> used >> by the emperor/router instance. >> Then I would like to have a virtualenv per vassal-sites: site1/ve, >> site2/ve >> >> >> I use this shell script call start-uwsgi.sh to start the >> emperor/fastrouter >> uwsgi instance. >> >> > > > Hi, you need a couple of tweaks: > > The glob in --emperor must be enclosed in "" otherwise the shell will > expand it: > > ../uwsgi --emperor "$BASEDIR/vassal-sites/*/*.xml" > > In xml config files you have to use %d to get the directory of the config > files > > site1.xml will become > > <uwsgi> > <home>%d/ve</home> > <chdir>%d</chdir> > <socket>/tmp/sockets/%s.sock</socket> > <module>%s</module> > </uwsgi> > >
Forget to say to make another pull as %d was added only some hour ago -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
