Skip to content

Commit dd5c665

Browse files
Update CONTRIBUTING.md (#505)
1 parent dcd4b59 commit dd5c665

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ In your code directory run:
8282

8383
And you're ready to code !
8484
85+
## Test your pull requests with a copy of the live data
86+
87+
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:
88+
89+
```sh
90+
export DATE=`date "+%Y%m%d%H%M%S"`
91+
heroku pg:backups:capture --app edit-tosdr-org
92+
heroku pg:backups:download --app edit-tosdr-org
93+
mv latest.dump $DATE.dump
94+
pg_restore --verbose --clean --no-acl --no-owner -d phoenix_development $DATE.dump
95+
rails db:migrate
96+
rails s
97+
```
98+
8599
## Automated environment setup
86100
87101
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.

0 commit comments

Comments
 (0)