Skip to content

Commit cdcf240

Browse files
committed
Add ecoystem file
1 parent b794ca3 commit cdcf240

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// To toggle between blue and green deployments:
2+
// sudo vim /etc/apache2/sites-enabled/api.webamp.org-le-ssl.conf
3+
// Update port number
4+
// sudo systemctl reload apache2
5+
module.exports = {
6+
apps: [
7+
{
8+
name: "skin-database-blue",
9+
script: "yarn",
10+
interpreter: "bash",
11+
args: "start",
12+
env: {
13+
NODE_ENV: "production",
14+
PORT: 3001,
15+
},
16+
},
17+
{
18+
name: "skin-database-green",
19+
script: "yarn",
20+
interpreter: "bash",
21+
args: "start:next",
22+
env: {
23+
NODE_ENV: "production",
24+
PORT: 3002,
25+
},
26+
},
27+
],
28+
};

0 commit comments

Comments
 (0)