Skip to content

Commit

Permalink
Update CONTRIBUTING.md (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong authored Jun 26, 2018
1 parent dcd4b59 commit dd5c665
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ In your code directory run:

And you're ready to code !
## Test your pull requests with a copy of the live data
This requires Heroku access, and is not easy to do if you use Docker compose, but if you can, please copy the live data to your local instance (important if you want to test your PRs!), run the following in your local phoenix repo:
```sh
export DATE=`date "+%Y%m%d%H%M%S"`
heroku pg:backups:capture --app edit-tosdr-org
heroku pg:backups:download --app edit-tosdr-org
mv latest.dump $DATE.dump
pg_restore --verbose --clean --no-acl --no-owner -d phoenix_development $DATE.dump
rails db:migrate
rails s
```
## Automated environment setup
If you have installed [Docker compose](https://docs.docker.com/compose/install/), getting the application running involves two one-time steps, after which it can be started with a single command in the future.
Expand Down

0 comments on commit dd5c665

Please sign in to comment.