Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Setting up Heroku Remote
- In local repo, confirm current config
- - `git remote -v`
- - should get output something like this
- ```
- origin git@github.com:canvasnyc/crunch-member.git (fetch)
- origin git@github.com:canvasnyc/crunch-member.git (push)
- ```
- Add Heroku remote
- - `heroku git:remote -a crunch-member-staging -r staging`
- - `-a` is the app name
- - `-r` renames it for future reference
- Confirm remote configs again
- - `git remote -v`
- Pull down staging DB
- - run `rake db:drop` to clear out the local db's
- - confirm name of `development` db in the `database.yml` file
- - run `heroku pg:pull DATABASE_URL crunch_member_development --remote staging`
- - ` crunch_member_development` is the `development` db from the yaml file
- - `--remote staging` is from renaming the remote heroku `--staging`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement