mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Add ecoystem file
This commit is contained in:
parent
b794ca333c
commit
cdcf240a96
1 changed files with 28 additions and 0 deletions
28
packages/skin-database/ecosystem.config.js
Normal file
28
packages/skin-database/ecosystem.config.js
Normal file
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue