-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathecosystem.config.js
More file actions
38 lines (38 loc) · 1.37 KB
/
ecosystem.config.js
File metadata and controls
38 lines (38 loc) · 1.37 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
module.exports = {
apps : [{
name : "web-wallet",
script : "app.js",
watch : true,
env_production : {
PORT : 80
}
}],
deploy : {
production : {
user : "root",
host : ["101.132.121.47"],
ref : "origin/master",
repo : "git@github.com:opteacher/web-wallet.git",
path : "/var/www/production",
ssh_options : "StrictHostKeyChecking=no",
"pre-setup" : "sudo apt-get install git",
"post-setup": "ls -la",
"pre-deploy-local" : "npm install webpack -g && npm install webpack-cli -D",
"post-deploy" : "chmod -x ecosystem.config.js && npm install && webpack -p && pm2 startOrRestart ecosystem.config.js --env production",
env : { PORT : 80 }
},
staging : {
user : "root",
host : "101.132.121.47",
ref : "origin/master",
repo : "git@github.com:opteacher/web-wallet.git",
path : "/var/www/development",
ssh_options : [
"StrictHostKeyChecking=no",
"PasswordAuthentication=no"
],
"pre-deploy-local": "npm install webpack -g && npm install webpack-cli -D",
"post-deploy" : "pm2 startOrRestart ecosystem.json --env dev"
}
}
}