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