From cdcf240a967fc49e211035b52214c99ecf78bb59 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 5 Jun 2025 19:54:10 -0400 Subject: [PATCH] Add ecoystem file --- packages/skin-database/ecosystem.config.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/skin-database/ecosystem.config.js diff --git a/packages/skin-database/ecosystem.config.js b/packages/skin-database/ecosystem.config.js new file mode 100644 index 00000000..610fe89f --- /dev/null +++ b/packages/skin-database/ecosystem.config.js @@ -0,0 +1,28 @@ +// To toggle between blue and green deployments: +// sudo vim /etc/apache2/sites-enabled/api.webamp.org-le-ssl.conf +// Update port number +// sudo systemctl reload apache2 +module.exports = { + apps: [ + { + name: "skin-database-blue", + script: "yarn", + interpreter: "bash", + args: "start", + env: { + NODE_ENV: "production", + PORT: 3001, + }, + }, + { + name: "skin-database-green", + script: "yarn", + interpreter: "bash", + args: "start:next", + env: { + NODE_ENV: "production", + PORT: 3002, + }, + }, + ], +};