This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.json
72 lines (68 loc) · 2.33 KB
/
ecosystem.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
"apps" : [
// First application
{
"name" : "NNM",
"script" : "server.js",
"max_memory_restart" : "200M",
"port" : 3001,
"watch" : true,
"env" : {
"COMMON_VARIABLE": "true"
},
"env_production" : {
"NODE_ENV": "production"
}
}//,
// Second application
//{
//name : "WEB",
//script : "web.js"
//}
],
/**
* Deployment section
* http://pm2.keymetrics.io/docs/usage/deployment/
*/
"deploy" : {
"production" : {
"user" : "pi",
"host" : "88.178.56.66",
"port" : "2223",
"key" : "/home/ubuntu/.ssh/id_rsa_pm2_rpiB",
"ref" : "origin/master",
"repo" : "https://github.com/darkterra/Node-Nas-Manager.git",
"path" : "/home/pi/www/production",
"pre-deploy-local" : "echo 'This is a local executed command test Prod'",
"post-deploy" : "npm install ; pm2 startOrReload ecosystem.json --env production"
},
"Sebounet" : {
"user" : "jerem",
"host" : "37.59.62.197",
"port" : "22",
"ref" : "origin/master",
"repo" : "https://github.com/darkterra/Node-Nas-Manager.git",
"path" : "/home/jerem/www/production",
"pre-deploy-local" : "echo 'This is a local executed command test Prod'",
"post-deploy" : "npm install ; pm2 startOrReload ecosystem.json --env production"
},
"dev" : {
"user" : "pi",
"host" : "88.178.56.66",
"port" : "2223",
"key" : "/home/ubuntu/.ssh/id_rsa_pm2_rpiB",
"ref" : "origin/master",
"repo" : "https://github.com/darkterra/Node-Nas-Manager.git",
"path" : "/home/pi/www/development",
"pre-deploy-local" : "echo 'This is a local executed command test Dev'",
"post-deploy" : "npm install ; pm2 startOrReload ecosystem.json --env dev",
"env" : {
"NODE_ENV" : "dev"
}
}
}
}