Skip to content

Instantly share code, notes, and snippets.

@nickyrabit
Last active June 16, 2018 17:26
Show Gist options
  • Save nickyrabit/42697a9656ff14c53468ab63d2e7a674 to your computer and use it in GitHub Desktop.
Save nickyrabit/42697a9656ff14c53468ab63d2e7a674 to your computer and use it in GitHub Desktop.
On Heroku, Flask and PostgreSQL (Simple CheatSheet)
So as im learning Flask and PostgreSQL, and i have been learning to host the Flask app into Heroku and i found some of these tiny tips for you guys to know because it
may be hard for you guys who are beginners like me to maneouver in this envirinment
ENABLE LOGGIN IN HEROKU
heroku logs --tail
TO ALLOCATE YOUR DABATABASE IN HEROKU CLI (COMMAND PROMPT RECEIVING HEROKU COMMANDS)
heroku pg:psql "POSTGREAPP NAME" --app ""database name"
LISTING ALL TABLES IN HEROKU CLI POSTGRES >> \dt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment