This repository has been archived by the owner on May 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ecosystem.config.js
71 lines (62 loc) · 1.91 KB
/
ecosystem.config.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
apps: [{
name: 'Devex',
script: './server-dist/server.js',
cwd: '/devex/app/',
// Options reference: https://pm2.io/doc/en/runtime/reference/ecosystem-file/
args: 'one two',
instances: 3,
autorestart: true,
watch: false,
max_memory_restart: '2G',
env_development: {
NODE_ENV: 'development',
MONGODB_DEBUG: true,
CAPABILITY_EDIT_ENABLED: true,
error_file: '/devex/logs/err.log',
out_file: '/devex/logs/out.log',
// nodemailer parameters
MAILER_SERVICE_PROVIDER: 'gmail',
MAILER_FROM: '[email protected]',
MAILER_EMAIL_ID: 'email.id',
MAILER_PASSWORD: 'password',
// database seeding - these should normally be set to true for dev
MONGO_SEED: true,
MONGO_SEED_LOG_RESULTS: true,
// URI for the host of the application
DOMAIN: 'http://localhost:4000',
// whether the app should be running in production mode - this affects whether development accounts are created
// and how the admin password is set
DEVEX_PROD: false,
// github client_id and client_secret =======
GITHUB_ID: 'abc123',
GITHUB_SECRET: 'supersecret',
// access to github API
GITHUB_ACCESS_TOKEN: 'abcfdefghijklmo12345',
// nexmo id and secret for sms 2FA (approval digitiziation)
NEXMO_API_KEY: 'abc123abc',
NEXMO_API_SECRET: 'abc123abc123',
NEXMO_FROM_NUMBER: '12505555555',
// default credentials for local dev accounts - won’t be used in production
DEV_ADMIN_PWD: 'JH3XN:EV-W6=qWm,',
DEV_USER_PWD: ':E9_`jMG%-^np4',
DEV_DEV_PWD: '9EygZf34NzM5X^vs',
DEV_DEV2_PWD: '(Pp}f]f6T8q,UzyA',
DEV_GOV_PWD: '{uL`b~4wv*NMT3H',
ALLOW_EDIT_CAPS: true
},
env_production: {
NODE_ENV: 'production'
}
}],
deploy: {
production: {
user: 'node',
host: '212.83.163.1',
ref: 'origin/master',
repo: '[email protected]:repo.git',
path: '/var/www/production',
'post-deploy': 'npm install && pm2 reload ecosystem.config.js --env production'
}
}
};