Skip to content

Commit

Permalink
Add note on using prod db
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler authored Sep 21, 2021
1 parent e2e5253 commit 8dcf2dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ from .base import *
python xposition/manage.py migrate
```

4. _(optional)_ Instead of using a blank database, you may place a copy of the production
database in `xposition/xp/db/prepopulated.db`. Ask Nathan for a backup. If the backup
is a SQL dump instead of a raw database file, you may reconsistute the database like below.
Note that some backups end in a `ROLLBACK;` for some reason--check to see if it's there and
replace it with an `END` instead.

```
$ sqlite3 prepopulated.db < prod_dump.sql
```

## Running
You should now be able to run the server:

Expand Down

0 comments on commit 8dcf2dc

Please sign in to comment.