Deployment and Best Practices

Virtual Environments

python -m venv myenv
source myenv/bin/activate  # Linux/Mac
myenv\Scripts\activate  # Windows

Deploying a Flask App on Heroku

heroku create myapp
git push heroku main