forked from maksrom/javascript-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.json
More file actions
58 lines (58 loc) · 2.16 KB
/
ecosystem.json
File metadata and controls
58 lines (58 loc) · 2.16 KB
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
{
"apps": [
{
"name": "Javascript.ru",
"script": "bin/server",
"instances": "0",
"exec_mode": "cluster_mode",
"max_memory_restart": "2G",
"log_file": "/var/log/node/javascript.log",
"error_file": "/var/log/node/javascript-err.log",
"out_file": "/var/log/node/javascript-out.log",
"env": {
"HOST": "127.0.0.1",
"PORT": "3000",
"PM2_GRACEFUL_LISTEN_TIMEOUT": 1000,
"PM2_GRACEFUL_TIMEOUT": 5000
},
"env_production": {
"NODE_ENV": "production",
"SITE_HOST": "https://learn.javascript.ru",
"STATIC_HOST": "https://js.cx",
"ASSET_VERSIONING": "file"
}
}
],
"deploy": {
"nightly": {
"user": "root",
"host": "nightly",
"pre-deploy": "cd /root/javascript-nodejs; bash ./pm2/pre_deploy.sh",
"path": "/js/javascript-nodejs",
"ref": "origin/production",
"repo": "https://github.com/iliakan/javascript-nodejs",
"test": "echo 'no test on deploy right now'",
"post-deploy": "NODE_LANG=ru bash ./pm2/post_deploy.sh"
},
"yuri": {
"user": "root",
"host": "yuri",
"pre-deploy": "cd /root/javascript-nodejs; bash ./pm2/pre_deploy.sh",
"path": "/js/javascript-nodejs",
"ref": "origin/production",
"repo": "https://github.com/iliakan/javascript-nodejs",
"test": "echo 'no test on deploy right now'",
"post-deploy": "NODE_LANG=ru bash ./pm2/post_deploy.sh"
},
"evolution": {
"user": "root",
"host": "evolution",
"pre-deploy": "cd /root/javascript-nodejs; bash ./pm2/pre_deploy.sh",
"path": "/js/javascript-nodejs",
"ref": "origin/production",
"repo": "https://github.com/iliakan/javascript-nodejs",
"test": "echo 'no test on deploy right now'",
"post-deploy": "NODE_LANG=en bash ./pm2/post_deploy.sh"
}
}
}