Thanks Roberto, I am going to pull and give it another try. Congratulation for bringing this new amazing feature to the Python world I have the feeling that this could change the "statu quo" around python being a pain in the neck to deploy multiple apps.
Regards, --yml On Thu, Feb 3, 2011 at 8:04 AM, Roberto De Ioris <[email protected]> wrote: > > > > >> 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 >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
