-
Notifications
You must be signed in to change notification settings - Fork 1
/
ecosystem.config.js.template
36 lines (36 loc) · 1.14 KB
/
ecosystem.config.js.template
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
module.exports = {
apps: [
{
name: '<instance_name>-email',
script: 'index.js',
instances: 1,
autorestart: false,
watch: false,
cron_restart: "*/15 * * * *",
exec_mode: 'fork',
max_memory_restart: '1G',
env: {
NODE_ENV: 'development',
PGUSER: '<db_user>',
PGPASSWORD: '<db_password>',
SCHEMA: '<db_user>',
BASE_URL: '<base_url_of_frontend>',
FROM: '<email_from>',
REPLY_TO: '<email_reply_to>',
SMTP_HOST: '<smtp_host>',
SMTP_PORT: '<smtp_port>'
},
env_production: {
NODE_ENV: 'production',
PGUSER: '<db_user>',
PGPASSWORD: '<db_password>',
SCHEMA: '<db_user>',
BASE_URL: '<base_url_of_frontend>'
FROM: '<email_from>',
REPLY_TO: '<email_reply_to>',
SMTP_HOST: '<smtp_host>',
SMTP_PORT: '<smtp_port>'
}
}
]
};