Minimal template for a heroku-ready Python 3 pipenv-enabled Flask app.
The purpose is to quickly start simple Flask apps ready for heroku, without the repetive copy-pasting through the Flask Getting Started or the bloat of the Heroku's https://github.com/heroku/python-getting-started tutorial.
Just clone into a new directory that you choose the name. Remove this .git stuff associated with this repo, start a new .git, create heroku app, and push.
$ git clone https://github.com/bcollazo/flask-pipenv-heroku-template myappname
$ cd myappname
$ rm -rf .git
$ git init .
$ heroku create myappnameinheroku
$ git push heroku master
Now you can develop quickly by using:
FLASK_ENV=development FLASK_APP=app.py flask run
Edit your index.html, index.css, index.js appropriately, commit, and push! :)
This template was created by (and the repetitive tasks you skip are):
pipenv install --three
pipenv install Flask
- Copy pasting hello.py from Flask's Getting Started
- Adding Procfile with Gunicorn setup
- Following Flask's Getting Started to add a index.html template connected to a index.css and index.js CSS and JS files.