include config

This commit is contained in:
2018-01-24 14:18:41 +02:00
parent 997ba56678
commit 60df8ab8e7
2 changed files with 19 additions and 0 deletions

11
code/start_app.py Normal file
View File

@@ -0,0 +1,11 @@
import subprocess,json
config = json.load(open('data/config.json','rt'))
subprocess.call([
'gunicorn',
'-b','0.0.0.0:80',
'--timeout',str(config['timeout']),
'-w',str(config['workers']),
'app:app'
])