-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
31 lines (30 loc) · 869 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
31 lines (30 loc) · 869 Bytes
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
module.exports = {
apps : [{
name: 'API',
script: 'src/index.ts',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}],
deploy : {
production : {
user : 'deploy',
host : 'cindertron7.com',
key : "~/ssh/digital_ocean_private.pem",
ref : 'origin/master',
repo : 'https://github.com/stats/space_shooter_server.git',
path : '/var/www/cindertron7.com/production',
'post-deploy' : 'export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && "$NVM_DIR/bash_completion" && npm install && pm2 startOrRestart ecosystem.config.js --env production ',
"env" : {
"NODE_ENV": "production"
}
}
}
};