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
Metadata
Release files for heroku-flask 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| heroku_flask-0.0.1.tar.gz | 1.8 kB | Without provenance | Details for heroku_flask-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| heroku_flask-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for heroku_flask-0.0.1-py3-none-any.whl |
Total release size: 5.0 kB
Release files / heroku_flask-0.0.1.tar.gz
| Download URL | heroku_flask-0.0.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9eb9ffe0875702df5c54ea19b490ec9fc053eb1078cf3df0acf185cdacf1b0b3
|
|
BLAKE2b-256 checksum How to use checksums |
7e26ce155640348fc95fb4e33817c13fa4118e042caca02d4e131681e5c8daa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / heroku_flask-0.0.1-py3-none-any.whl
| Download URL | heroku_flask-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1988e4339d9dfc91a13afae7893f7978ae118d23312c9ea92fa08f9be937f07
|
|
BLAKE2b-256 checksum How to use checksums |
3f77a388dc355486fd24de4a07fdfc856f127bd657bf9e9a5f8a57c5768a57c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for heroku-flask 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.