Keep the production configuration when upgrading
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 19 Apr 2020 08:48:21 +0000 (10:48 +0200)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 19 Apr 2020 08:48:21 +0000 (10:48 +0200)
bin/upgrade-prod.sh

index c4f340968eeaee40b18b9e8aebb518b8ec5f0b47..79ee061e64f432eeed967d9ded8ee04307e4b5c9 100755 (executable)
@@ -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"