move venv to shared (#1291)
This commit is contained in:
+6
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user