pip freeze
Run
pip install -r requirements.txt
and install all necessary dependencies with below command
pip install <package_name>
python3 -m venv <virtual_env_name>
export FLASK_APP=src
python3 main.py
Use Virtual env for isolated and consistent development
source <virtual_env_name>/bin/activate
deactivate
pip3 freeze > requirements.txt
git push heroku main
Refer (Tutorial 1)[https://devcenter.heroku.com/articles/git#create-a-heroku-remote] (Tutorial 2)[https://devcenter.heroku.com/articles/getting-started-with-python#create-and-deploy-the-app]
heroku ps:scale web=1
heroku open
heroku logs