-
Notifications
You must be signed in to change notification settings - Fork 3
/
pm2.config.js
55 lines (51 loc) · 1.18 KB
/
pm2.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
43
44
45
46
47
48
49
50
51
52
53
54
55
const os = require('os');
const path = require('path');
const homedir = os.homedir();
const env_local = {
MOCK: true,
};
const log_date_format = 'DD-MM-YYYY HH:mm:ss';
module.exports = {
watchUI: {
name: 'frog-ui',
script: './node_modules/@vue/cli-service/bin/vue-cli-service.js',
args: 'serve',
env_local,
},
// tslint: {
// name: 'frog-tslint',
// script: './node_modules/tslint/bin/tslint',
// args: "server/**/*.ts",
// restart_delay: 10000,
// env_local
// },
compileServer: {
name: 'frog-compile-server',
script: './node_modules/typescript/bin/tsc',
cwd: 'server',
args: '--watch',
env_local,
},
runServer: {
name: 'frog-server',
script: 'index.js',
cwd: 'dist/server/',
log: path.join(homedir, '.npmfrog', 'logs', 'server.log'),
env_local,
},
serveUIStatic: {
name: 'frog-ui-static',
script: 'serve',
log_date_format,
log: path.join(homedir, '.npmfrog', 'logs', 'webui.log'),
env: {
PM2_SERVE_PATH: 'dist/webui',
PM2_SERVE_PORT: 8000,
},
env_local: {
PM2_SERVE_PATH: 'dist/webui',
PM2_SERVE_PORT: 8000,
MOCK: env_local.MOCK,
},
},
};