mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 13:01:08 +00:00
Fix dbshell command
dbshell needs to be run in a already-running container, thus exec rather than run is the correct docker-compose command.
This commit is contained in:
parent
00666c4f52
commit
cc610372ca
1 changed files with 3 additions and 3 deletions
6
bw-dev
6
bw-dev
|
@ -32,8 +32,8 @@ function runweb {
|
||||||
docker-compose run --rm web "$@"
|
docker-compose run --rm web "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rundb {
|
function execdb {
|
||||||
docker-compose run --rm db $@
|
docker-compose exec db $@
|
||||||
}
|
}
|
||||||
|
|
||||||
function execweb {
|
function execweb {
|
||||||
|
@ -110,7 +110,7 @@ case "$CMD" in
|
||||||
runweb python manage.py shell
|
runweb python manage.py shell
|
||||||
;;
|
;;
|
||||||
dbshell)
|
dbshell)
|
||||||
rundb psql -U ${POSTGRES_USER} ${POSTGRES_DB}
|
execdb psql -U ${POSTGRES_USER} ${POSTGRES_DB}
|
||||||
;;
|
;;
|
||||||
restart_celery)
|
restart_celery)
|
||||||
docker-compose restart celery_worker
|
docker-compose restart celery_worker
|
||||||
|
|
Loading…
Reference in a new issue