Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ### Setting up Heroku Remote
  2. In local repo, confirm current config
  3. - `git remote -v`
  4. - should get output something like this
  5. ```
  6. origin git@github.com:canvasnyc/crunch-member.git (fetch)
  7. origin git@github.com:canvasnyc/crunch-member.git (push)
  8. ```
  9. Add Heroku remote
  10. - `heroku git:remote -a crunch-member-staging -r staging`
  11. - `-a` is the app name
  12. - `-r` renames it for future reference
  13. Confirm remote configs again
  14. - `git remote -v`
  15.  
  16. Pull down staging DB
  17. - run `rake db:drop` to clear out the local db's
  18. - confirm name of `development` db in the `database.yml` file
  19. - run `heroku pg:pull DATABASE_URL crunch_member_development --remote staging`
  20. - ` crunch_member_development` is the `development` db from the yaml file
  21. - `--remote staging` is from renaming the remote heroku `--staging`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement