Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
QuiteAFancyEmerald
GitHub Repository: QuiteAFancyEmerald/Holy-Unblocker
Path: blob/master/ecosystem.config.js
5154 views
1
module.exports = {
2
apps: [
3
{
4
name: 'HolyUBLTS',
5
script: './backend.js',
6
env: {
7
PORT: 8080,
8
NODE_ENV: 'development',
9
},
10
env_production: {
11
PORT: 8080,
12
NODE_ENV: 'production',
13
},
14
instances: '1',
15
exec_interpreter: 'babel-node',
16
exec_mode: 'fork',
17
autorestart: true,
18
exp_backoff_restart_delay: 100,
19
cron_restart: '*/10 * * * *',
20
kill_timeout: 3000,
21
watch: false,
22
},
23
{
24
name: 'HolyUBLTS-src-refresh',
25
script: './run-command.mjs',
26
args: 'build',
27
env: {
28
NODE_ENV: 'development',
29
},
30
env_production: {
31
NODE_ENV: 'production',
32
},
33
instances: '1',
34
exec_interpreter: 'babel-node',
35
exec_mode: 'fork',
36
autorestart: true,
37
restart_delay: 1000 * 60 * 10,
38
kill_timeout: 3000,
39
watch: false,
40
},
41
{
42
name: 'HolyUBLTS-cache-clean',
43
script: './run-command.mjs',
44
args: 'clean',
45
env: {
46
NODE_ENV: 'development',
47
},
48
env_production: {
49
NODE_ENV: 'production',
50
},
51
instances: '1',
52
exec_interpreter: 'babel-node',
53
exec_mode: 'fork',
54
autorestart: true,
55
restart_delay: 1000 * 60 * 60 * 24 * 7,
56
kill_timeout: 3000,
57
watch: false,
58
},
59
],
60
};
61
62