Skip to content

Commit

Permalink
claud ai version
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Apr 23, 2024
1 parent 713ae98 commit 2d8250a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
set -e
trap 'echo \"An error occurred. Reverting to backup...\"; mv ${{ env.LIVE_DIR_PATH }}.backup ${{ env.LIVE_DIR_PATH }} 2>/dev/null || true' ERR
echo \"Checking if live directory exists...\" | tee -a /var/log/prototypr/deploy.log
echo \"Checking if live application directory exists...\" | tee -a /var/log/prototypr/deploy.log
if [ -d \"${{ env.LIVE_DIR_PATH }}\" ]; then
echo \"Moving live directory to backup...\" | tee -a /var/log/prototypr/deploy.log
echo \"Moving live application directory to backup...\" | tee -a /var/log/prototypr/deploy.log
# Remove any existing backup directory
if [ -d \"${{ env.LIVE_DIR_PATH }}.backup\" ]; then
rm -rf \"${{ env.LIVE_DIR_PATH }}.backup\"
Expand All @@ -82,13 +82,13 @@ jobs:
rm -rf \"\$NEW_DEPLOYMENT_DIR\" 2>/dev/null || true
mkdir -p \"\$NEW_DEPLOYMENT_DIR\"
echo \"Copying live directory to new deployment directory...\" | tee -a /var/log/prototypr/deploy.log
echo \"Copying live application directory to new deployment directory...\" | tee -a /var/log/prototypr/deploy.log
trap 'echo \"An error occurred. Reverting to backup...\"; rsync -a \"${{ env.LIVE_DIR_PATH }}.backup/\" \"${{ env.LIVE_DIR_PATH }}/\"' ERR
if [ -d \"${{ env.LIVE_DIR_PATH }}.backup\" ]; then
cp -r \"${{ env.LIVE_DIR_PATH }}.backup/\" \"\$NEW_DEPLOYMENT_DIR/\"
else
echo \"Live directory backup does not exist.\"
echo \"Live application directory backup does not exist.\"
fi
echo \"Copying .next to new deployment directory...\" | tee -a /var/log/prototypr/deploy.log
Expand Down

0 comments on commit 2d8250a

Please sign in to comment.