2017 m. spalio 23 d., pirmadienis

Heroku

prerequisites 

$ pip install pipenv

$ git clone https://github.com/heroku/python-getting-started.git && cd python-getting-started

$ heroku create

$ git push heroku master

$ heroku ps:scale web=1

$ heroku open

Logs:

$ heroku logs --tail

Cloning existing app:


$ heroku apps
$ heroku git:clone -a myapp



Create a new Git repository

Initialize a git repository in a new or existing directory

$ cd my-project/
$ git init
$ heroku git:remote -a repository-name

$ git add .
$ git commit -am "make it better"
$ git push heroku master
Existing Git repository

For existing repositories, simply add the heroku remote
$ heroku git:remote -a flask-de


Heroku remote example:
https://git.heroku.com/flask-app.git 

Required files

Heroku app requires Procfile:
web: gunicorn app:app

Requirements.txt
gunicorn==19.6.0

Access website from:
https://flask-app.herokuapp.com/