Maintenance - Mise à jour mensuelle Lundi 1 Juin 2020 entre 7h00 et 9h00

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__':
parser.add_argument("--daemon", action="store_true", dest="daemon", default=False, help="Run the server as daemon")
args = vars(parser.parse_args())
if args["daemon"]:
from cherrypy.process.plugins import Daemonizer
Daemonizer(cherrypy.engine).subscribe()
app_conf = {
'/':
{'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