Commits

Anonymous committed 36c2404

Making sure autoreload is on in development

Comments (0)

Files changed (1)

dragoman/control/root.py

         'log.screen' : True,        
         'server.socket_port' : env.get('port', 5000),
         'server.socket_host': '0.0.0.0',
+        'engine.autoreload_on': True
     }
 
-    if not env.debug:
+    if not env.get('debug', False):
         conf['environment'] = 'production'
-        conf['engine.autoreload_on'] = False
         
     if env.get('threads'):
         conf.update({'server.thread_pool' : env.get('threads')})
-    
+
     cherrypy.config.update(conf)
     cherrypy.server.quickstart()
     cherrypy.engine.start()