Commit decb9064 by Arjun Jhukal

removed the server restart from pipeline

parent fa027fa1
...@@ -61,13 +61,13 @@ jobs: ...@@ -61,13 +61,13 @@ jobs:
./ \ ./ \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/var/www/getFirekirin/ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:/var/www/getFirekirin/
- name: Restart application # - name: Restart application
run: | # run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF' # ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
cd /var/www/getFirekirin # cd /var/www/getFirekirin
pm2 reload ecosystem.config.js --update-env --env production || \ # pm2 reload ecosystem.config.js --update-env --env production || \
pm2 start ecosystem.config.js --env production # pm2 start ecosystem.config.js --env production
EOF # EOF
- name: Notify Slack on Success - name: Notify Slack on Success
if: 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