Reference https://realpython.com/token-based-authentication-with-flask/ updated in falsk 2.0, flask_script to flask_cli https://medium.datadriveninvestor.com/migrating-flask-script-to-flask-2-0-cli-4a5eee269139 steps to run in local python manage.py run SET FLASK_APP=project.server.app.py flask db init flask db migrate -m 'Migration_message' flask db upgrade Deployment to Azure https://docs.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=bash&pivots=python-framework-flask https://docs.microsoft.com/en-us/azure/developer/python/tutorial-deploy-app-service-on-linux-04 gunicorn --bind=0.0.0.0 --timeout 600 startup:app Heroku Reference https://github.com/Azure-Samples/flask-postgresql-app/blob/master/app/app.py