mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
34 lines
704 B
JavaScript
34 lines
704 B
JavaScript
|
module.exports = {
|
||
|
apps : [{
|
||
|
name : 'hackchat-websocket',
|
||
|
node_args : '-r esm',
|
||
|
script : './server/main.js',
|
||
|
instances: 1,
|
||
|
autorestart: true,
|
||
|
max_memory_restart: '2G',
|
||
|
exec_mode: 'fork',
|
||
|
watch : false,
|
||
|
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'
|
||
|
}
|
||
|
}]
|
||
|
};
|