Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a dump and write documentation for loading the dump for local development #914

Open
hancush opened this issue Dec 12, 2022 · 1 comment

Comments

@hancush
Copy link
Collaborator

hancush commented Dec 12, 2022

Running the scrapers is a perennial barrier to local development, in particular for new team members. Let's create a dump from the canned scrape (docker-compose run --rm scrapers, then pg_dump -Fc -O -h localhost -p 32001 -d lametro > dev.dump, and update the README with instructions on restoring a dump for development.

Here's an example of documentation! https://github.com/datamade/bga-payroll#restore-from-a-database-dump

@antidipyramid
Copy link
Collaborator

Now that we're on Heroku, it's much easier to dump the staging/live databases and load them locally.

https://devcenter.heroku.com/articles/heroku-postgres-backups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants