File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 36
36
- name : Compress build artifacts
37
37
run : |
38
38
cd frontend
39
- tar -czf nuxt-build.tar.gz .output nuxt.config.ts package.json assets
39
+ tar -czf nuxt-build.tar.gz .output nuxt.config.ts package.json assets ecosystem.config.js
40
40
41
41
- name : List compressed file (for debugging)
42
42
run : |
70
70
echo "$SSH_PRIVATE_KEY" > deploy_key
71
71
chmod 600 deploy_key
72
72
scp -o StrictHostKeyChecking=no -i deploy_key nuxt-build.tar.gz [email protected] :/tmp/nuxt-build.tar.gz || { echo 'SCP failed'; exit 1; }
73
- scp -o StrictHostKeyChecking=no -i deploy_key ecosystem.config.js [email protected] :/tmp/ecosystem.config.js || { echo 'SCP failed'; exit 1; }
74
73
ssh -o StrictHostKeyChecking=no -i deploy_key [email protected] '
75
74
export NVM_DIR="$HOME/.nvm" &&
76
75
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
82
81
rm /tmp/nuxt-build.tar.gz &&
83
82
cd /usr/share/nginx/html/ibminscut &&
84
83
echo "$SSH_PASSWORD" | sudo -S npm install --production &&
85
- echo "$SSH_PASSWORD" | sudo -S mv /tmp/ecosystem.config.js /usr/share/nginx/html/ibminscut/ecosystem.config.js &&
86
84
echo "$SSH_PASSWORD" | sudo -S env "PATH=$PATH" pm2 start /usr/share/nginx/html/ibminscut/ecosystem.config.js
87
85
' || { echo 'SSH command failed'; exit 1; }
88
86
rm deploy_key
You can’t perform that action at this time.
0 commit comments