mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
commit
c902301d82
1 changed files with 6 additions and 8 deletions
14
bw-dev
14
bw-dev
|
@ -84,16 +84,14 @@ case "$CMD" in
|
||||||
;;
|
;;
|
||||||
resetdb)
|
resetdb)
|
||||||
prod_error
|
prod_error
|
||||||
clean
|
docker-compose rm -svf
|
||||||
# Start just the DB so no one else is using it
|
docker volume rm -f bookwyrm_media_volume bookwyrm_pgdata bookwyrm_redis_activity_data bookwyrm_redis_broker_data bookwyrm_static_volume
|
||||||
docker-compose up --build -d db
|
docker-compose build
|
||||||
rundb dropdb -U ${POSTGRES_USER} ${POSTGRES_DB}
|
|
||||||
rundb createdb -U ${POSTGRES_USER} ${POSTGRES_DB}
|
|
||||||
# Now start up web so we can run the migrations
|
|
||||||
docker-compose up --build -d web
|
|
||||||
migrate
|
migrate
|
||||||
|
migrate django_celery_beat
|
||||||
initdb
|
initdb
|
||||||
clean
|
runweb python manage.py collectstatic --no-input
|
||||||
|
admin_code
|
||||||
;;
|
;;
|
||||||
makemigrations)
|
makemigrations)
|
||||||
prod_error
|
prod_error
|
||||||
|
|
Loading…
Reference in a new issue