Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified scripts/deploy-cron.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ elif [ $LOCAL = $BASE ]; then

OLD_CONTAINER=$(docker ps -aqf "name=django")
echo "$(date --utc +%FT%TZ): Scaling server up..."
BUILD VERSION=$BUILD VERSION docker compose up -d --no-deps --scale django=2 --no-recreate django
BUILD_VERSION=$BUILD_VERSION docker compose up -d --no-deps --scale django=2 --no-recreate django

sleep 30

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