Skip to content

Commit

Permalink
overwrite .next folder
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Apr 22, 2024
1 parent 3e70347 commit 4e2e3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
fi
echo "Moving .next to live 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
mv ${{ env.STAGING_DIR_PATH }}/.next ${{ env.LIVE_DIR_PATH }}/.next
mv ${{ env.STAGING_DIR_PATH }}/.next ${{ env.LIVE_DIR_PATH }}/
echo "Restarting application..." | tee -a /var/log/prototypr/deploy.log
pm2 restart prototypr-5
"

0 comments on commit 4e2e3d9

Please sign in to comment.