Skip to main content

Heroku setup for flask application

Project description

Heroku Flask Setup

Run & setup

Linux

$ heroku_flask.sh

Windows

$ heroku_flask.bat

Creating List Of Files

  • Procfile
  • runtime.txt
  • app.py
  • wsgi.py

Procfile

web: gunicorn wsgi:app

runtime.txt

python-3.6.9

app.py

from flask import Flask

app = Flask(__name__)


@app.route("/")
def home_view():
    return "<h1>Welcome to HK World</h1>"

wsgi.py

from app import app

if __name__ == "__main__":
    app.run()

Extra Information

Create Heroku App

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heroku_flask-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

heroku_flask-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file heroku_flask-0.0.1.tar.gz.

File metadata

  • Download URL: heroku_flask-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for heroku_flask-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9eb9ffe0875702df5c54ea19b490ec9fc053eb1078cf3df0acf185cdacf1b0b3
MD5 53de626154da4218be9ebb23409960cd
BLAKE2b-256 7e26ce155640348fc95fb4e33817c13fa4118e042caca02d4e131681e5c8daa7

See more details on using hashes here.

File details

Details for the file heroku_flask-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: heroku_flask-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for heroku_flask-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1988e4339d9dfc91a13afae7893f7978ae118d23312c9ea92fa08f9be937f07
MD5 b2ad4442446a44f830a036a062b9a58e
BLAKE2b-256 3f77a388dc355486fd24de4a07fdfc856f127bd657bf9e9a5f8a57c5768a57c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page