Skip to content

Instantly share code, notes, and snippets.

@nicolaslazartekaqui
Created August 11, 2015 21:19
Show Gist options
  • Save nicolaslazartekaqui/f8b9351bc2b9f5868781 to your computer and use it in GitHub Desktop.
Save nicolaslazartekaqui/f8b9351bc2b9f5868781 to your computer and use it in GitHub Desktop.
Heroku guide

to deploy

na primeira vez, é bom usar o -f no caso de ter outra branch no heroku

git push -f heroku BRANCH:master

nas proximas, basta fazer um

git push heroku BRANCH:master

to reset database

é bom fazer pra resetar a base no caso dela estar com "lixo", esse DATABASE é assim mesmo, não é algo que deve ser substituido

heroku pg:reset DATABASE

depois

heroku rake db:setup
heroku run rake db:seed

no caso de migrate

heroku run rake db:migrate

to log in console

heroku run console

to show logs

heroku logs --tail

to restart server (dyno)

heroku restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment