12 lines
222 B
Python
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'
|
|
])
|