29
loading...
This website collects cookies to deliver better user experience
armgitaar/flask-example
to the repo and keep branch as master
.if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=os.environ.get('PORT', 5000))
5000
. However, the following allows the app to run on the server assigned port: port=os.environ.get('PORT', 5000)
.app.py
."interpreter": "/usr/bin/python3",
"instances": "max",
"exec_mode": "cluster_mode",
{
"name": "your.domain.com",
"script": "app.py",
"args": "",
"log_type": "json",
"cwd": "/home/cleavr/your.domain.com/current",
"interpreter": "/usr/bin/python3",
"env": {
"PORT": assigned port number,
"CI": 1,
}
}
pip install -r requirements.txt