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
Update README.md with instructions on how to clone the prod db #1755
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ with typo nits
README.md
Outdated
@@ -96,6 +96,36 @@ The `load_fake_data` command will output pages with the following slugs: | |||
|
|||
This list is available on review apps by clicking on `DEV HELP` in the menu or going to `[review app url]/help`. | |||
|
|||
### Using a copy of the production database for critical testing | |||
|
|||
Some development work requires testing changes against "whatever the current production database looks like", which requires having postgresql installed locallaly (`brew install postgresql` on mac; download and run the official installer for windowsl; if you use linux/unix, you know how to install things for your favourite flavour, so just do that for postgresql). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo - s/locallaly/locally
README.md
Outdated
|
||
1) grab a copy of the production database by running `pg_dump DATABASE_URL > foundation.psql` on the commandline. In this, `DATABASE_URL` is a placeholder, and you will want to replace it with the value found for the `DATABASE_URL` environment variable that is used on heroku, for the production instance. | ||
|
||
This will take a little while, but once the operations finishes, open `foundation.psql` in your favourite text/code editor and take note of who the owner is by looking for the following statements: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo - s/once the operations finishes/once the operation finishes
README.md
Outdated
-- | ||
``` | ||
|
||
2) Run `createdb foundation` on the command line so that you have a postgresql database to work with. If you get an error that you already have a database called `foundation`, either create a new database with a new name (and then use that name in the next steps) or delete the old database using `dropdb foundation` before issueing `createdb foundation`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo s/issueing/issuing
No description provided.