-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
36 lines (34 loc) · 1.06 KB
/
ecosystem.config.js
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
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*
* Deploy configuration section
* http://pm2.keymetrics.io/docs/usage/deployment/
*/
const apps = [
{
name: "server-mock-hook",
script: "index.js",
cwd: "/home/ubuntu/server-mock-hook/current",
out_file: "server-mock-hook-output.log",
error_file: "server-mock-hook-error.log",
combine_logs: false,
env: {
NODE_ENV: "production",
PORT: 5000,
HOST: "https://hook.beetech.global"
}
}
];
const deploy = {
"production": {
"user": "ubuntu",
"key": "~/.ssh/beetech_rsa",
"host": "185.136.234.35",
"ref": "origin/master",
"repo": "[email protected]:BeeTech-global/bee-hook.git",
"path": "/home/ubuntu/server-mock-hook/",
"post-deploy": "npm install --progress=false && pm2 startOrRestart /home/ubuntu/server-mock-hook/source/ecosystem.config.js --only server-mock-hook"
}
};
module.exports = { apps, deploy };