FLASK
-
Flask basic commandsDevelopment 2021. 7. 27. 15:45
If there is app.py (Flask app), we can run it simply like below. python3 app.py However, it is recommended to use Flask own environmental variable to run Flask app, please see below. export FLASK_APP=app 🠔 Flask app name, it means 'app.py' export FLASK_ENV=development 🠔 We run as developement purpose, otherwise production export PORT=9010 🠔 Port number to use, normally, 80 port is already taken ..