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.
|
#!/bin/bash |
|
APP_NAME="qry-python-js" |
|
source /usr/share/nvm/init-nvm.sh |
|
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 |