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 bba590e commit aa77743
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/backEnd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@ jobs:
- name: Checkout repository//download the source code repository
uses: actions/checkout@v3

- name: Create private key
run: echo "${{ secrets.AWS_PEM}}" > myPlayList-key-pair.pem

- name: Update PATH
- name: Create private key file and change permissions to read-only
run: |
set PATH=$PATH:/home/ubuntu/.nvm/versions/node/v20.11.1/bin/
echo "${{ secrets.AWS_PEM}}" > myPlayList-key-pair.pem
chmod 400 myPlayList-key-pair.pem
- name: Install dependencies and build
run: |
chmod 400 myPlayList-key-pair.pem
echo "${{vars.AWS_HOST_NAME}}@${{vars.AWS_HOST}}"
cat myPlayList-key-pair.pem
run:
ssh -i myPlayList-key-pair.pem -o StrictHostKeyChecking=no ${{vars.AWS_HOST_NAME}}@${{vars.AWS_HOST}} '
cd Full-Stack-Project-Assessment &&
pwd &&
git pull &&
cd server &&
pm2 -v
'
cd Full-Stack-Project-Assessment/server/ &&
git pull &&
cd server &&
node -v &&
npm -v &&
pm2 -v
'

0 comments on commit aa77743

Please sign in to comment.