Merge pull request #2724 from WesleyAC/fix-bw-dev-dbshell

Fix dbshell command
This commit is contained in:
Mouse Reeve 2023-03-12 15:45:45 -07:00 committed by GitHub
commit 352ba972c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
bw-dev
View file

@ -32,8 +32,8 @@ function runweb {
docker-compose run --rm web "$@"
}
function rundb {
docker-compose run --rm db $@
function execdb {
docker-compose exec db $@
}
function execweb {
@ -110,7 +110,7 @@ case "$CMD" in
runweb python manage.py shell
;;
dbshell)
rundb psql -U ${POSTGRES_USER} ${POSTGRES_DB}
execdb psql -U ${POSTGRES_USER} ${POSTGRES_DB}
;;
restart_celery)
docker-compose restart celery_worker