Skip to content

Commit 9073b67

Browse files
authored
Fix deployment again (#236)
* fix deployment * update URL * Add zero downtime cd scripts * make deploy scripts executable * Fix deploy script typos
1 parent c1a9220 commit 9073b67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/deploy-cron.sh

100644100755
File mode changed.

scripts/deploy.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ elif [ $LOCAL = $BASE ]; then
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 up -d --no-deps --scale django=2 --no-recreate django
29+
BUILD_VERSION=$BUILD_VERSION docker compose up -d --no-deps --scale django=2 --no-recreate django
3030

3131
sleep 30
3232

33-
echo "$(date --utc +&FT&TZ): Scaling old server down..." docker container rm -f $OLD_CONTAINER
33+
echo "$(date --utc +%FT%TZ): Scaling old server down..." docker container rm -f $OLD_CONTAINER
3434
docker compose up -d --no-deps --scale django=1 --no-recreate django
3535
elif [ $REMOTE = $BASE ]; then
3636
echo "$(date --utc +%FT%TZ): Local changes detected, you may need to stash"

0 commit comments

Comments
 (0)