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