2020-03-13 02:28:20 +08:00
|
|
|
module.exports = {
|
|
|
|
apps : [{
|
2022-06-23 00:32:51 +08:00
|
|
|
name: 'hackchat-websocket',
|
|
|
|
script: './main.mjs',
|
2020-03-13 02:28:20 +08:00
|
|
|
autorestart: true,
|
|
|
|
max_memory_restart: '2G',
|
|
|
|
exec_mode: 'fork',
|
2022-06-23 00:32:51 +08:00
|
|
|
watch: false,
|
2020-03-13 02:28:20 +08:00
|
|
|
env: {
|
|
|
|
NODE_ENV: 'development'
|
|
|
|
},
|
|
|
|
env_production: {
|
|
|
|
NODE_ENV: 'production'
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
name: 'hackchat-httpd',
|
|
|
|
script: './node_modules/http-server/bin/http-server',
|
|
|
|
args: './client -p 3000 -o',
|
|
|
|
instances: 1,
|
|
|
|
autorestart: true,
|
|
|
|
watch: false,
|
|
|
|
max_memory_restart: '2G',
|
|
|
|
exec_mode: 'fork',
|
|
|
|
env: {
|
|
|
|
NODE_ENV: 'development'
|
|
|
|
},
|
|
|
|
env_production: {
|
|
|
|
NODE_ENV: 'production'
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
};
|