forked from colouring-cities/colouring-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.template.js
30 lines (29 loc) · 1.06 KB
/
ecosystem.config.template.js
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
// Template for production ecosystem file
// Copy this file and edit to set up pm2 config
// DO NOT COMMIT details to this file (publicly visible)
// See https://pm2.io/doc/en/runtime/guide/ecosystem-file/ for docs
module.exports = {
apps: [
{
name: "colouringlondon",
script: "./app/build/server.js",
instances: 2,
env: {
NODE_ENV: "production",
PGHOST: "hostname",
PGPORT: 5432,
PGDATABASE: "databasename",
PGUSER: "username",
PGPASSWORD: "longrandomsecret",
APP_COOKIE_SECRET: "longrandomsecret",
TILECACHE_PATH: "/path/to/tile/cache",
MAIL_SERVER_HOST: "mail_hostname",
MAIL_SERVER_PORT: 587,
MAIL_SERVER_USER: "mail_username",
MAIL_SERVER_PASSWORD: "longrandompassword",
WEBAPP_ORIGIN: "https://beta.colouring.london",
EXTRACTS_DIRECTORY:"/path/to/extracts",
}
}
]
}