Files
flees/code/start_app.py
2018-01-24 14:18:41 +02:00

12 lines
222 B
Python

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'
])