Skip to content

Commit

Permalink
Try specifying node as well as npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Sep 17, 2024
1 parent 38b02ae commit 0dd8aa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/actions-ec2.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Push-to-EC2
name: Push-to-Server

# Trigger deployment only on push to main branch
on:
Expand All @@ -14,7 +14,7 @@ jobs:
steps:
- name: Checkout the files
uses: actions/checkout@v3
- name: Deploy to my EC2
- name: Deploy to server
uses: appleboy/ssh-action@master
env:
TARGETDIR: app-store-dash
Expand All @@ -35,6 +35,6 @@ jobs:
sudo systemctl daemon-reload
sudo systemctl restart app-store-api
pwd
NODE_OPTIONS="--max-old-space-size=800" /home/goblin/.nvm/versions/node/v20.16.0/bin/npm run build
NODE_OPTIONS="--max-old-space-size=800" /home/goblin/.nvm/versions/node/v20.16.0/bin/node /home/goblin/.nvm/versions/node/v20.16.0/bin/npm run build
echo "Restart systemd service"
sudo systemctl restart app-store-frontend

0 comments on commit 0dd8aa8

Please sign in to comment.