File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212# https://docs.openlibrary.org/advanced/deployment-scratchpad.html
1313
1414PRODUCTION=" compose.yaml:compose.production.yaml"
15- # zsh uses HOST (although we're in a bash context, so maybe not needed?)
16- HOSTNAME=" ${HOSTNAME:- $HOST } "
1715OLIMAGE=" ${OLIMAGE:- } "
16+ DOCKER_COMPOSE_COMMAND=${DOCKER_COMPOSE_COMMAND:- " up --no-deps -d" }
1817
1918SERVER_SUFFIX=${SERVER_SUFFIX:- " " }
2019# Note the order matters; we generally want ol-www0 done before the web heads,
@@ -30,6 +29,6 @@ for SERVER in $SERVERS; do
3029 set -e
3130 HOSTNAME=\$ (host $SERVER | cut -d ' ' -f 1)
3231 cd /opt/openlibrary
33- COMPOSE_FILE=$PRODUCTION HOSTNAME=\$ HOSTNAME OLIMAGE=$OLIMAGE docker compose --profile $( echo $SERVER | cut -f1 -d ' .' ) up --no-deps -d
32+ COMPOSE_FILE=$PRODUCTION HOSTNAME=\$ HOSTNAME OLIMAGE=$OLIMAGE docker compose --profile $( echo $SERVER | cut -f1 -d ' .' ) $DOCKER_COMPOSE_COMMAND
3433 "
3534done
You can’t perform that action at this time.
0 commit comments