diff options
author | makkalot <makkalot@gmail.com> | 2008-08-04 22:09:01 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-08-04 22:09:01 +0300 |
commit | cbc05f55dea75e19719941d78359c3bba1a6a960 (patch) | |
tree | c1b07ec1ce7b2947cd3ab705af599f467341b652 /funcweb | |
parent | a165ede89b996ee867e5719b52852345b631eec9 (diff) | |
download | func-cbc05f55dea75e19719941d78359c3bba1a6a960.tar.gz func-cbc05f55dea75e19719941d78359c3bba1a6a960.tar.xz func-cbc05f55dea75e19719941d78359c3bba1a6a960.zip |
some variable to tell us when we are working on Production environment
Diffstat (limited to 'funcweb')
-rw-r--r-- | funcweb/funcweb/commands.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/funcweb/funcweb/commands.py b/funcweb/funcweb/commands.py index 6d6d338..2c35486 100644 --- a/funcweb/funcweb/commands.py +++ b/funcweb/funcweb/commands.py @@ -18,6 +18,9 @@ cherrypy.lowercase_api = True class ConfigurationError(Exception): pass +#that variable will help us to see when we are in PRODUCTION +PRODUCTION_ENV = False + def start(): """Start the CherryPy application server.""" @@ -54,6 +57,8 @@ def start(): from funcweb.controllers import Root if exists("/etc/funcweb/prod.cfg"): + #we work with production settings now ! + PRODUCTION_ENV = True utils.daemonize("/var/run/funcwebd.pid") #then start the server try: |