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 e041ef4 commit 7b4eeb2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ jobs:
echo "Waiting for .next directory to be copied..."
sleep 5
done
echo "Checking if ${env.LIVE_DIR_PATH} exists..."
if [ -d "${env.LIVE_DIR_PATH}" ]; then
echo "${env.LIVE_DIR_PATH} exists."
else
echo "${env.LIVE_DIR_PATH} does not exist."
fi
echo "Checking if ${env.LIVE_DIR_PATH}/.next exists..."
if [ -d "${env.LIVE_DIR_PATH}/.next" ]; then
echo "${env.LIVE_DIR_PATH}/.next exists."
else
echo "${env.LIVE_DIR_PATH}/.next does not exist."
fi
mv ${{ env.STAGING_DIR_PATH }}/.next ${{ env.LIVE_DIR_PATH }}/.next
echo "Restarting application..." | tee -a /var/log/prototypr/deploy.log
pm2 restart prototypr-5
Expand Down

0 comments on commit 7b4eeb2

Please sign in to comment.