Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteward committed Aug 4, 2017
1 parent 6f3acf4 commit a4821e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Expand Up @@ -50,12 +50,17 @@ API documentation https://developers.google.com/api-client-library/php/

Add to cron:

manage.py clearsessions daily in cron
0 4 * * * www-data /var/www/hackspace-foundation-sites/manage.sh clearsessions

And run the following to upgrade the DB without breaking column types:
After setting the credentials appropriately and taking a backup, run:

env/bin/python manage.py migrate main 0001 --fake-initial
env/bin/python manage.py migrate main 0002
env/bin/python manage.py migrate main 0003 --fake
env/bin/python manage.py migrate

And then run in the following SQL files:

- etc/create-flourish-tables.sql
- etc/restore-column-defaults.sql
- etc/restore-multicolumn-pks.sql


6 changes: 6 additions & 0 deletions manage.sh
@@ -0,0 +1,6 @@
#!/bin/bash

dir=$(dirname $(readlink -f "$0"))
cd "$dir"
env/bin/python manage.py "$@"

0 comments on commit a4821e5

Please sign in to comment.