Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Last active December 26, 2015 07:59
Show Gist options
  • Save vanderhoop/7118908 to your computer and use it in GitHub Desktop.
Save vanderhoop/7118908 to your computer and use it in GitHub Desktop.
pushing a project to heroku:
***if you're pushing to heroku you must add the following to config/application.rb, WITHIN the Application class:
config.assets.initialize_on_precompile = false
1. heroku create (git remote -v shows we have remotes on heroku)
***if you used an environmental variable, heroku won't be able to access it, and you will have to tell heroku what the environmental variable and value are via the following line of code in the terminal:
***heroku config:set GITHUB_USERNAME=joesmith
2. git push heroku master
3. heroku open
4. heroku logs
5. heroku run rake db:migrate (IMPORTANT)
6. heroku run rake routes
7. heroku run rake db:seed
8. heroku run rails c
9. heroku pg:psql and then \d
To get heroku's console, enter:
heroku logs --tail
keep 4 or 5 tabs open: bash, local server, heroku server, local rails console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment