Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Update instructions for getting data and deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-hopper committed Mar 5, 2018
1 parent 7f1942c commit ab8ec36
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion readme-dev.md
Expand Up @@ -91,7 +91,8 @@ Now, restart the service: `sudo service postgresql restart`.

Run this script to initialize the database with a dump from the production server:

ec run db --instance=primary -- pg_dump --no-owner --no-acl | ./manage.py dbshell
curl $(ec postgres dump) > db.dump
pg_restore --no-owner --no-acl --verbose -d td db.dump

If you get timeout errors running the above command, this is an alternative that has worked:

Expand Down Expand Up @@ -120,6 +121,14 @@ If you get timeout errors running the above command, this is an alternative that
* PostgreSQL repository: `deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main`


### Deploying

1. Switch to the develop branch (for td-demo) or the master branch (for td).
2. Make sure changes have been pushed to Github.
3. Run this command:
```ec deploy```


### Upgrade PostgreSQL 9.3 to 9.5 on Ubuntu 14.04

This was required because the `publishing_publishrequest` contains a `jsonb` field, a new type that was introduced in PostgreSQL 9.4.
Expand Down

0 comments on commit ab8ec36

Please sign in to comment.