添加启动脚本

master
刘东琪 9 months ago
parent 3cfb87b380
commit 3ad6a21e87
  1. 10
      deploy.sh
  2. 0
      test/test.js

@ -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…
Cancel
Save