diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..5ef0a32 --- /dev/null +++ b/deploy.sh @@ -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 diff --git a/test.js b/test/test.js similarity index 100% rename from test.js rename to test/test.js