Skip to content

Commit 83d7dca

Browse files
committed
pm2 restart process without deleting it
1 parent 4257a28 commit 83d7dca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/server-init.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ install_yarn_cmd_if_not_exists pm2
1010
# install_if_missing_vector
1111

1212
set +e
13-
pm2 delete MHQ_HTTP_SERVER
13+
pm2 stop MHQ_HTTP_SERVER || true
1414
set -e
1515

1616
NEXT_MANUAL_SIG_HANDLE=true
17-
pm2 start "yarn start" --name MHQ_HTTP_SERVER --time --max-memory-restart 2G
17+
pm2 start "yarn start" --name MHQ_HTTP_SERVER --time --max-memory-restart 2G
18+
pm2 save

0 commit comments

Comments
 (0)