move venv to shared (#1291)

This commit is contained in:
NotSoToothless
2026-05-31 01:43:19 -07:00
committed by GitHub
parent 37c3e66d75
commit cb0a18f748
11 changed files with 23 additions and 41 deletions
+6 -3
View File
@@ -6,13 +6,16 @@
const DEPLOY_PATH = __dirname;
// Both bots share one venv at BOTS/SHARED/.venv (built from SHARED/requirements.txt).
const PY_INTERPRETER = `${DEPLOY_PATH}/../SHARED/.venv/bin/python`;
module.exports = {
apps: [
// Discord Bot
{
name: 'srebot',
script: 'start_bot.py',
interpreter: `${DEPLOY_PATH}/.venv/bin/python`,
interpreter: PY_INTERPRETER,
cwd: DEPLOY_PATH,
instances: 1,
autorestart: true,
@@ -54,7 +57,7 @@ module.exports = {
{
name: 'srebot-axbot',
script: 'BOT/srebot_external.py',
interpreter: `${DEPLOY_PATH}/.venv/bin/python`,
interpreter: PY_INTERPRETER,
cwd: DEPLOY_PATH,
instances: 1,
autorestart: true,
@@ -74,7 +77,7 @@ module.exports = {
{
name: 'srebot-webhook',
script: 'github_webhook_updater.py',
interpreter: `${DEPLOY_PATH}/.venv/bin/python`,
interpreter: PY_INTERPRETER,
cwd: DEPLOY_PATH,
instances: 1,
autorestart: true,