thraxil.org:

Reply to: TurboGears Deployment with supervisord and workingenv.py

You might want to do "exec ./start-foo.py", which will replace the current process with the Python process. Then you won't need the pidproxy stuff. Supervisor2 also now has an environment-setting configuration value; if you use this, you can activate the environment just by setting PYTHONPATH appropriately.
Yep, that's a nice improvement. You also need to be careful to make sure that cherrypy's autoreload stuff is disabled (using server.environment="production" is good enough) or you get multiple python processes running and again, supervisord can't properly send them signals.

formatting is with Textile syntax. Comments are not displayed until they are approved by a moderator. Moderators will not approve unless the comment contributes value to the discussion.

namerequired
emailrequired
url
remember info?