From 69b1b481b28f2086301c9fde1ad3368783e82010 Mon Sep 17 00:00:00 2001 From: xucheng Date: Fri, 31 Oct 2025 22:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20PM2=20=E5=AE=88=E6=8A=A4?= =?UTF-8?q?=20portwardenc-amd64=20=E7=A8=8B=E5=BA=8F=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pm2.config.js | 10 ++++++++++ scripts/run.sh | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/pm2.config.js b/pm2.config.js index 1890825..e745e74 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -16,5 +16,15 @@ module.exports = { env: { "PYTHONPATH": "." } + }, { + name: "portwardenc", + cwd: ".", + script: "./portwardenc-amd64", + interpreter: "none", + env: { + "SERVER_ADDR": "http://bastion.3prism.ai:7000", + "SERVICE_ID": "FUNDAMENTAL", + "LOCAL_PORT": "3000" + } }] }; diff --git a/scripts/run.sh b/scripts/run.sh index 4471658..739634b 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -103,11 +103,29 @@ module.exports = { env: { "PYTHONPATH": "." } + }, { + name: "portwardenc", + cwd: ".", + script: "./portwardenc-amd64", + interpreter: "none", + env: { + "SERVER_ADDR": "http://bastion.3prism.ai:7000", + "SERVICE_ID": "FUNDAMENTAL", + "LOCAL_PORT": "3000" + } }] }; EOL fi +# Check and prepare portwardenc-amd64 +if [ -f "portwardenc-amd64" ]; then + echo "Setting execute permission for portwardenc-amd64..." + chmod +x portwardenc-amd64 +else + echo "Warning: portwardenc-amd64 file not found. It will be skipped." +fi + # Start processes with pm2 pm2 start pm2.config.js