-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
42 lines (41 loc) · 933 Bytes
/
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
37
38
39
40
41
42
module.exports = {
apps: [
{
name: 'blog-server',
script: 'npm run start',
cwd: './server',
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
output: '../logs/server-out.log',
error: '../logs/server-error.log',
},
{
name: 'blog-client',
script: 'npm run start',
cwd: './client',
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
output: '../logs/client-out.log',
error: '../logs/client-error.log',
},
],
deploy: {
production: {
user: 'root',
host: '45.32.74.136',
ref: 'origin/master',
repo: '[email protected]:daskyrk/blog.git',
path: '/root/workspace/blog',
'post-setup': './init.sh',
'post-deploy': 'pm2 reload ecosystem.config.js --env production',
},
},
}