diff options
| author | makkalot <makkalot@gmail.com> | 2008-08-04 22:17:07 +0300 |
|---|---|---|
| committer | makkalot <makkalot@gmail.com> | 2008-08-04 22:17:07 +0300 |
| commit | 53190513bd294ef4ed51689f2e66b5bf3dbbf839 (patch) | |
| tree | 05b3e37f724f041b399ffd9479049683b88a8759 /funcweb | |
| parent | cbc05f55dea75e19719941d78359c3bba1a6a960 (diff) | |
mistake in previous one :)
Diffstat (limited to 'funcweb')
| -rw-r--r-- | funcweb/funcweb/commands.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/funcweb/funcweb/commands.py b/funcweb/funcweb/commands.py index 2c35486..aa74680 100644 --- a/funcweb/funcweb/commands.py +++ b/funcweb/funcweb/commands.py @@ -23,7 +23,7 @@ PRODUCTION_ENV = False def start(): """Start the CherryPy application server.""" - + global PRODUCTION_ENV setupdir = dirname(dirname(__file__)) curdir = os.getcwd() @@ -35,6 +35,8 @@ def start(): # 'prod.cfg' in the current directory and then for a default # config file called 'default.cfg' packaged in the egg. if exists("/etc/funcweb/prod.cfg"): + #we work with production settings now ! + PRODUCTION_ENV = True configfile = "/etc/funcweb/prod.cfg" elif len(sys.argv) > 1: @@ -56,9 +58,7 @@ def start(): from funcweb.controllers import Root - if exists("/etc/funcweb/prod.cfg"): - #we work with production settings now ! - PRODUCTION_ENV = True + if PRODUCTION_ENV: utils.daemonize("/var/run/funcwebd.pid") #then start the server try: |
