From: Raphaƫl Jakse Date: Sun, 19 Apr 2020 08:48:21 +0000 (+0200) Subject: Keep the production configuration when upgrading X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=604d1563844df3b80466982f97911b7060cd0ce4;p=trivabble.git Keep the production configuration when upgrading --- diff --git a/bin/upgrade-prod.sh b/bin/upgrade-prod.sh index c4f3409..79ee061 100755 --- a/bin/upgrade-prod.sh +++ b/bin/upgrade-prod.sh @@ -57,7 +57,7 @@ echo "Backing up production to $BACKUP_DIR ..." rsync -avp --delete "$PROD_DIR/" "$BACKUP_DIR/" echo "Sending to production..." -rsync -avp --delete --exclude 'games.backup.json' --exclude '/.git' "$WORKING_DIRECTORY/" "$PROD_DIR/" +rsync -avp --delete --exclude 'games.backup.json' --exclude 'config.js' --exclude '/.git' "$WORKING_DIRECTORY/" "$PROD_DIR/" echo echo "Resetting the directory..." git reset --hard "$new_version"