Skip to content

Commit

Permalink
Update pm2_runner.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nandyluis323 authored Jan 1, 2024
1 parent e3c09f8 commit 019f347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pm2_runner.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
if ! type pm2 > /dev/null
then
sudo npm install -g pm2 && pm2 start npm --name nextjs-app -- run start -- -p 3000
sudo npm install -g pm2 && sudo pm2 start npm --name nextjs-app -- run start -- -p 3000
else
pm2 restart nextjs-app
sudo pm2 restart nextjs-app
fi

0 comments on commit 019f347

Please sign in to comment.