-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreset-db-heroku.sh
executable file
·21 lines (18 loc) · 1.1 KB
/
reset-db-heroku.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# redeploy
# git push heroku master
# reset DB
heroku restart --app kicoma-tri
heroku pg:reset DATABASE --confirm kicoma-tri --app kicoma-tri
heroku run python manage.py makemigrations --app kicoma-tri
heroku run python manage.py migrate --app kicoma-tri
# initialize DB from fixtures
# heroku run python manage.py loaddata kicoma/kitchen/fixtures/druhy-jidla.json
heroku run python manage.py loaddata kicoma/kitchen/fixtures/alergeny.json --app kicoma-tri
heroku run python manage.py loaddata kicoma/kitchen/fixtures/dph.json --app kicoma-tri
# heroku run python manage.py loaddata kicoma/kitchen/fixtures/skupiny-stravniku.json
heroku run python manage.py loaddata kicoma/kitchen/fixtures/skupiny.json --app kicoma-tri
heroku run python manage.py loaddata kicoma/kitchen/fixtures/uzivatele.json --app kicoma-tri
# heroku run python manage.py loaddata kicoma/kitchen/fixtures/article.json
# heroku run python manage.py loaddata kicoma/kitchen/fixtures/recipe.json
# heroku run python manage.py loaddata kicoma/kitchen/fixtures/recipe_article.json
heroku run python manage.py createsuperuser --username admin --app kicoma-tri