From 37c3b5af9d182993ea3107fcc8176793e5097a65 Mon Sep 17 00:00:00 2001 From: poptong Date: Wed, 1 Oct 2025 02:37:33 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=EC=9B=B9=ED=9B=85=20=EC=84=9C?= =?UTF-8?q?=EB=B2=84=EB=A5=BC=20.cjs=20=ED=99=95=EC=9E=A5=EC=9E=90?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 24 ++++++++++++++++++++++++ webhook-ecosystem.config.cjs | 2 +- webhook-ecosystem.config.js | 20 ++++++++++++++++++++ webhook-server.js => webhook-server.cjs | 0 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 ecosystem.config.js create mode 100644 webhook-ecosystem.config.js rename webhook-server.js => webhook-server.cjs (100%) diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..4323c0a --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,24 @@ +module.exports = { + apps: [ + { + name: "music-admin", + script: ".output/server/index.mjs", + cwd: "/var/www/music/music-admin", + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: "1G", + env: { + NODE_ENV: "production", + PORT: 3000, + DATABASE_URL: + "postgresql://musicuser:Tjqjqhdks$321@localhost:5432/musicdb", + JWT_SECRET: "vTEq9OTvIFs3ZbDaszLRL/ZiAEXziemX1Wh1GIeb+DI=", + }, + error_file: "/var/log/music-admin-error.log", + out_file: "/var/log/music-admin-out.log", + log_file: "/var/log/music-admin.log", + time: true, + }, + ], +}; diff --git a/webhook-ecosystem.config.cjs b/webhook-ecosystem.config.cjs index a4b4ac6..5ff9609 100644 --- a/webhook-ecosystem.config.cjs +++ b/webhook-ecosystem.config.cjs @@ -2,7 +2,7 @@ module.exports = { apps: [ { name: "music-admin-webhook", - script: "webhook-server.js", + script: "webhook-server.cjs", cwd: "/var/www/music/music-admin", instances: 1, autorestart: true, diff --git a/webhook-ecosystem.config.js b/webhook-ecosystem.config.js new file mode 100644 index 0000000..a4b4ac6 --- /dev/null +++ b/webhook-ecosystem.config.js @@ -0,0 +1,20 @@ +module.exports = { + apps: [ + { + name: "music-admin-webhook", + script: "webhook-server.js", + cwd: "/var/www/music/music-admin", + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: "100M", + env: { + NODE_ENV: "production", + }, + error_file: "/var/log/music-admin-webhook-error.log", + out_file: "/var/log/music-admin-webhook-out.log", + log_file: "/var/log/music-admin-webhook.log", + time: true, + }, + ], +}; diff --git a/webhook-server.js b/webhook-server.cjs similarity index 100% rename from webhook-server.js rename to webhook-server.cjs