Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Setup process environments after daemonizing.

  • Loading branch information...
commit 2b7447b1c303931e23a99902e869086cfc50f39a 1 parent 146d02a
Brian Rosner authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bosnowsgi.py
6 bosnowsgi.py
View
@@ -28,9 +28,6 @@ def start(self):
"""
Starts the WSGI server.
"""
- # setup the process environment
- for var, value in self.env.items():
- os.environ[var] = value
server = CherryPyWSGIServer((self.host, self.port), self.dispatcher)
server.environ.update(self.wsgi_env)
if self.daemonize:
@@ -38,6 +35,9 @@ def start(self):
if self.pidfile:
print "writing pid (%s)" % self.pidfile
writepid(self.pidfile)
+ # setup the process environment
+ for var, value in self.env.items():
+ os.environ[var] = value
try:
server.start()
except KeyboardInterrupt:
Please sign in to comment.
Something went wrong with that request. Please try again.