$ heroku_flask.sh
$ heroku_flask.bat
- Procfile
- runtime.txt
- app.py
- wsgi.py
web: gunicorn wsgi:app
python-3.6.9
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home_view():
return "<h1>Welcome to HK World</h1>"
from app import app
if __name__ == "__main__":
app.run()
Login to heroku CLI using
$ heroku login
Now, Create a unique name for your Web app.
$ heroku create heroku-flask-app
Push your code from local to the heroku remote
$ git push heroku master