Files
qinglong/ecosystem.config.js
T

27 lines
606 B
JavaScript

const isContainer = process.env.QL_CONTAINER === 'true';
module.exports = {
apps: [
{
name: 'qinglong',
max_restarts: 5,
kill_timeout: 1000,
wait_ready: true,
listen_timeout: 5000,
source_map_support: true,
time: !isContainer,
out_file: isContainer ? '/dev/null' : undefined,
error_file: isContainer ? '/dev/null' : undefined,
script: 'static/build/app.js',
env: {
http_proxy: '',
https_proxy: '',
HTTP_PROXY: '',
HTTPS_PROXY: '',
all_proxy: '',
ALL_PROXY: '',
},
},
],
};