$ ./startServer.sh
s
$ heroku config:set FLASK_ENV=production --app gratitude-py
$ heroku config:set FLASK_PASSWORD=SECRET --app gratitude-py
$ heroku run python --app gratitude-py
Then in the python console:
>>> from api import db
>>> db.create_all()
for local:
export FLASK_APP=api.py
export FLASK_ENV=development
export FLASK_PASSWORD=abc
flask shell
and then run:
>>> from api import db
>>> db.create_all()
Can then create entries through command line easilly.
$ curl -G "https://gratitude-py.herokuapp.com/gratitude/submit" --data-urlencode "password=password" --data-urlencode "data=Warmth"
$ heroku logs --tail --app gratitude-py