Commit 0c851ed6 authored by Jerome Mariette's avatar Jerome Mariette

add deamon option to the server

parent 3d5c5758
...@@ -115,6 +115,10 @@ if __name__ == '__main__': ...@@ -115,6 +115,10 @@ if __name__ == '__main__':
parser.add_argument("--daemon", action="store_true", dest="daemon", default=False, help="Run the server as daemon") parser.add_argument("--daemon", action="store_true", dest="daemon", default=False, help="Run the server as daemon")
args = vars(parser.parse_args()) args = vars(parser.parse_args())
if args["daemon"]:
from cherrypy.process.plugins import Daemonizer
Daemonizer(cherrypy.engine).subscribe()
app_conf = { app_conf = {
'/': '/':
{'tools.staticdir.root': WEB_DIR}, {'tools.staticdir.root': WEB_DIR},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment