Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaDudnyk committed Mar 6, 2024
1 parent 1f4fcbb commit ebee575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backEnd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Create private key file and change permissions to read-only
run: |
echo "${{ secrets.AWS_PEM}}" > myPlayList-key-pair.pem
echo "${{secrets.AWS_PEM}}" > myPlayList-key-pair.pem
chmod 400 myPlayList-key-pair.pem
- name: Install dependencies and build
Expand All @@ -24,6 +24,8 @@ jobs:
run: |
ssh -i myPlayList-key-pair.pem -o StrictHostKeyChecking=no ${{vars.AWS_HOST_NAME}}@${{vars.AWS_HOST}} <<-'SSH_SCRIPT'
export PATH="$PATH:/home/ubuntu/.nvm/versions/node/v20.11.1/bin" &&
export SERVER_PORT=${{vars.SERVER_PORT }} &&
export DB_URL=$${{secrets.DB_URL}} &&
cd Full-Stack-Project-Assessment/server &&
git pull &&
if pm2 list | grep -q fullstackproject; then
Expand Down

0 comments on commit ebee575

Please sign in to comment.