File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ elif [ $LOCAL = $BASE ]; then
2121
2222 COMPOSE_FILE=" /home/matthew/democrasite/docker-compose.production.yml"
2323 echo " $( date --utc +%FT%TZ) : Running build..."
24- docker compose $COMPOSE_FILE rm -f
25- docker compose $COMPOSE_FILE build
24+ docker compose -f $COMPOSE_FILE rm -f
25+ docker compose -f $COMPOSE_FILE build
2626
2727 OLD_CONTAINER=$( docker ps -aqf " name=django" )
2828 echo " $( date --utc +%FT%TZ) : Scaling server up..."
29- BUILD_VERSION=$BUILD_VERSION docker compose $COMPOSE_FILE up -d --no-deps --scale django=2 --no-recreate django
29+ BUILD_VERSION=$BUILD_VERSION docker compose -f $COMPOSE_FILE up -d --no-deps --scale django=2 --no-recreate django
3030
3131 sleep 30
3232
3333 echo " $( date --utc +%FT%TZ) : Scaling old server down..." docker container rm -f $OLD_CONTAINER
34- docker compose $COMPOSE_FILE up -d --no-deps --scale django=1 --no-recreate django
34+ docker compose -f $COMPOSE_FILE up -d --no-deps --scale django=1 --no-recreate django
3535elif [ $REMOTE = $BASE ]; then
3636 echo " $( date --utc +%FT%TZ) : Local changes detected, you may need to stash"
3737else
You can’t perform that action at this time.
0 commit comments