summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/commands.py5
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: