Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # Heroku stuff
  2.  
  3. ```
  4. heroku logs --tail
  5. # show logs
  6.  
  7. heroku run bash
  8. # run bash instance
  9.  
  10. heroku restart
  11. # restart dyno
  12.  
  13. heroku pg:psql
  14. # start psql in Heroku application
  15. ```
  16.  
  17. # PSQL stuff
  18.  
  19. ```
  20. psql MY_DATABASE_NAME
  21. # connect to database
  22.  
  23. SELECT * FROM MY_TABLE
  24. # get all rows from table
  25.  
  26. \dt
  27. # show all tables
  28.  
  29. \d+ MY_TABLE
  30. # show column names for table
  31. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement