Commit decb9064 by Arjun Jhukal

removed the server restart from pipeline

parent fa027fa1
......@@ -61,13 +61,13 @@ jobs:
./ \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/var/www/getFirekirin/
- name: Restart application
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
cd /var/www/getFirekirin
pm2 reload ecosystem.config.js --update-env --env production || \
pm2 start ecosystem.config.js --env production
EOF
# - name: Restart application
# run: |
# ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
# cd /var/www/getFirekirin
# pm2 reload ecosystem.config.js --update-env --env production || \
# pm2 start ecosystem.config.js --env production
# EOF
- name: Notify Slack on Success
if: success()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment