Skip to content

Commit

Permalink
Fix deployment pm2 cluster init
Browse files Browse the repository at this point in the history
  • Loading branch information
yamil committed Sep 10, 2023
1 parent a39bd42 commit b43e7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ pm2 stop all
pm2 delete all
pm2 startup
sudo env PATH=$PATH:/home/ec2-user/.nvm/versions/node/v16.20.0/bin /home/ec2-user/.nvm/versions/node/v16.20.0/lib/node_modules/pm2/bin/pm2 startup systemd -u ec2-user --hp /home/ec2-user
pm2 start --name api -i max npm -- run prod
NODE_ENV=production pm2 start --name api -i max dist/main.js
pm2 save

0 comments on commit b43e7a5

Please sign in to comment.