This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update commands and add shell script; add commands to procfile
- Loading branch information
1 parent
0f6955d
commit bebf349
Showing
9 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
web: gunicorn --pythonpath src offenewahlen_nrw17.wsgi --log-file - | ||
importxml: python3 manage.py importxml | ||
importtxt: python3 manage.py importtxt | ||
importmunicipalities: python3 manage.py importmunicipalities | ||
importnrw13: python3 manage.py importnrw13 | ||
importparties: python3 manage.py importparties | ||
|
||
reset: sh reset_db.sh | ||
migrate: sh migrate_db.sh | ||
drop: sh drop_db.sh | ||
import_base: sh import_base.sh | ||
import_nrw13: sh import_nrw13.sh | ||
import_nrw17: sh import_nrw17.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "ERROR: Drop-function not defined so far." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
python src/manage.py import_base | ||
echo "Base data imported." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
python src/manage.py import_results 'data/test/nrw_2013_1_results.json' nrw13 --file_type json --mapping_file 'data/test/nrw_2013_mapping.json' | ||
echo "NRW13 results imported." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "ERROR: Import not defined so far." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
python src/manage.py makemigrations viz | ||
python src/manage.py makemigrations | ||
python src/manage.py migrate | ||
echo "Database migrated succesfully." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
sh drop_db.sh | ||
sh migrate_db.sh | ||
sh setup_db.sh |
File renamed without changes.
File renamed without changes.