Skip to content

Commit

Permalink
fix: start script and delete unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
FluxST committed Jul 6, 2023
1 parent 37cda7c commit 50455fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 95 deletions.
94 changes: 0 additions & 94 deletions scripts/pdns_pipe_backend.py

This file was deleted.

4 changes: 3 additions & 1 deletion src/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ if ! [ -x "$(command -v pm2)" ]; then
npm install pm2@latest -g
fi

npm i >> /dev/null

is_running=$(pm2 list | grep healthchecker)

if [ -z "$is_running" ]; then
# if the application is not running, start it
pm2 start npm --name "healthchecker" -- start
else
# if the application is running, restart it
pm2 restart healtchecker
pm2 restart healthchecker
fi

0 comments on commit 50455fa

Please sign in to comment.