Add docker-compose production with dev command

This commit is contained in:
Dana Lambert 2021-11-10 17:21:57 +13:00
parent 0e377e1746
commit 2ff2329118
3 changed files with 61 additions and 4 deletions

8
dev
View file

@ -95,6 +95,14 @@ cmd_start() {
docker-compose up
}
cmd_build_production() {
docker-compose -f docker-compose.production.yaml build
}
cmd_start_production() {
docker-compose -f docker-compose.production.yaml up --remove-orphans
}
# Run the command
cmd="$1"
"cmd_$cmd" "$@"