mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-22 15:08:07 +00:00
Remove option to resetdb from production helpers
This commit is contained in:
parent
7db77c690e
commit
5e2667c297
1 changed files with 1 additions and 9 deletions
10
fr-dev
10
fr-dev
|
@ -14,14 +14,6 @@ case "$1" in
|
||||||
docker-compose exec web python manage.py migrate
|
docker-compose exec web python manage.py migrate
|
||||||
docker-compose exec web python manage.py shell -c 'import init_db'
|
docker-compose exec web python manage.py shell -c 'import init_db'
|
||||||
;;
|
;;
|
||||||
resetdb)
|
|
||||||
docker-compose stop web
|
|
||||||
docker-compose exec db dropdb -U fedireads fedireads
|
|
||||||
docker-compose exec db createdb -U fedireads fedireads
|
|
||||||
docker-compose start web
|
|
||||||
docker-compose exec web python manage.py migrate
|
|
||||||
docker-compose exec web python manage.py shell -c 'import init_db'
|
|
||||||
;;
|
|
||||||
makemigrations)
|
makemigrations)
|
||||||
docker-compose exec web python manage.py makemigrations
|
docker-compose exec web python manage.py makemigrations
|
||||||
;;
|
;;
|
||||||
|
@ -48,6 +40,6 @@ case "$1" in
|
||||||
docker-compose exec web python manage.py collectstatic --no-input
|
docker-compose exec web python manage.py collectstatic --no-input
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unrecognised command. Try: up, initdb, resetdb, makemigrations, migrate, shell, dbshell, restart_celery, test, test_report"
|
echo "Unrecognised command. Try: up, initdb, makemigrations, migrate, shell, dbshell, restart_celery, test, test_report"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue