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

Update README.md with instructions on how to clone the prod db #1755

Merged
merged 4 commits into from Aug 23, 2018

Conversation

Pomax
Copy link
Contributor

@Pomax Pomax commented Aug 21, 2018

No description provided.

@Pomax Pomax requested a review from gvn August 21, 2018 22:18
@cadecairos cadecairos temporarily deployed to foundation-mofostaging-pr-1755 August 21, 2018 22:18 Inactive
@Pomax Pomax temporarily deployed to foundation-mofostaging-pr-1755 August 21, 2018 22:23 Inactive
@Pomax Pomax requested review from gideonthomas and removed request for gvn August 22, 2018 16:50
@Pomax Pomax temporarily deployed to foundation-mofostaging-pr-1755 August 22, 2018 17:31 Inactive
Copy link
Contributor

@gideonthomas gideonthomas left a 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).
Copy link
Contributor

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:
Copy link
Contributor

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`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo s/issueing/issuing

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

Successfully merging this pull request may close these issues.

None yet

3 participants