From 3ad6a21e87fcd41a6dcb532ef6442d1c960a03ba Mon Sep 17 00:00:00 2001 From: liudongqi Date: Tue, 3 Sep 2024 18:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=AF=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 10 ++++++++++ test.js => test/test.js | 0 2 files changed, 10 insertions(+) create mode 100644 deploy.sh rename test.js => test/test.js (100%) 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