Use run --rm instead of exec for initdb

This way we don't depend on the containers already being up and running.
This commit is contained in:
Joel Bradshaw 2022-01-09 23:57:57 -08:00
parent 6492ca2941
commit 29ebfc456d

6
bw-dev
View file

@ -30,12 +30,12 @@ function execweb {
}
function initdb {
execweb python manage.py migrate
execweb python manage.py initdb
runweb python manage.py migrate
runweb python manage.py initdb
}
function makeitblack {
docker-compose run --rm web black celerywyrm bookwyrm
runweb black celerywyrm bookwyrm
}
function awscommand {