Skip to content

Commit

Permalink
Update deploy_to_prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug6739 authored Mar 12, 2024
1 parent a6c5587 commit 58ad984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "source ~/.bashrc && cd ${INPUT_REMOTE} && cd backend && npm install --production"
- name: Start application
run: |
ssh -v -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && pm2 start ecosystem.config.js --update-env"
ssh -v -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && pm2 start ecosystem.config.js --update-env --env NODE_ENV=${NODE_ENV} --env DATABASE_PASSWORD='${DATABASE_PASSWORD}' --env DATABASE_USER='${DATABASE_USER}' --env JWT_SECRET='${JWT_SECRET}'"
env:
NODE_ENV: production
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
Expand Down

0 comments on commit 58ad984

Please sign in to comment.