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

Commit ab8ec36

Browse files
Update instructions for getting data and deploying
1 parent 7f1942c commit ab8ec36

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

readme-dev.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ Now, restart the service: `sudo service postgresql restart`.
9191

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

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

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

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

122123

124+
### Deploying
125+
126+
1. Switch to the develop branch (for td-demo) or the master branch (for td).
127+
2. Make sure changes have been pushed to Github.
128+
3. Run this command:
129+
```ec deploy```
130+
131+
123132
### Upgrade PostgreSQL 9.3 to 9.5 on Ubuntu 14.04
124133

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

0 commit comments

Comments
 (0)