parent
3cfb87b380
commit
3ad6a21e87
2 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||||
|
#!/bin/sh |
||||||
|
APP_NAME="qry-python-js" |
||||||
|
|
||||||
|
if pm2 status | grep -q "$APP_NAME.*online"; then |
||||||
|
echo "Application $APP_NAME is running." |
||||||
|
pm2 restart $APP_NAME |
||||||
|
else |
||||||
|
echo "Application $APP_NAME is not running." |
||||||
|
pm2 start 'node app.js ' --name $APP_NAME |
||||||
|
fi |
Loading…
Reference in new issue