Skip to content

Commit

Permalink
Local db copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Feb 27, 2015
1 parent 92ee086 commit 220851f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
else:
SECRET_KEY = os.environ['FLASK_SECRET_KEY']

SQLALCHEMY_DATABASE_URI = 'sqlite:///../instance/tmp.db'
SQLALCHEMY_DATABASE_URI = 'sqlite:///data/elections.sqlite'

logging.config.dictConfig({
'version': 1,
Expand Down
10 changes: 10 additions & 0 deletions bin/post_compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -eo pipefail

# The post_compile hook is run by heroku-buildpack-python

echo "-----> post_compile hook"

echo "-----> unzipping sqlite database"

gunzip -fkv data/*.gz
Binary file added data/elections.sqlite.gz
Binary file not shown.
11 changes: 0 additions & 11 deletions instance/config.py

This file was deleted.

2 changes: 0 additions & 2 deletions instance/config_private.py

This file was deleted.

0 comments on commit 220851f

Please sign in to comment.