mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-26 17:08:09 +00:00
Merge pull request #2724 from WesleyAC/fix-bw-dev-dbshell
Fix dbshell command
This commit is contained in:
commit
352ba972c5
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