You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
229 B

#!/bin/sh
APP_NAME="qry-python-js"
nvm use 20
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
fi