A simple Python Flask example application that's ready to run on Heroku.
-
pipenv install
-
pipenv shell
-
python app.py
Reveal Config Vars
a - APi ID
b - api hash
c - bot token
uid - I think user id
d - name.heroku.com remove /
-
heroku create
-
heroku addons:create heroku-postgresql:hobby-dev
-
git push heroku master
-
Note: make sure you run
db.create_all()
to create the tables:
$ heroku run python
Python 3.6.8 (default, Jan 29 2019, 19:35:16)
>>> from app import db
>>> db.create_all()
>>> exit()