-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.cjs
executable file
·31 lines (30 loc) · 1.11 KB
/
ecosystem.config.cjs
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
module.exports = {
apps : [{
name: "Edforma Authentication API",
script: '/home/edforma/pm2Data/EdformaHelper/current/index.ts',
interpreter: '/home/edforma/.bun/bin/bun',
watch: '.',
"env_production": {
"NODE_ENV": "production",
"PORT": 3000
}
}],
deploy : {
production : {
user : 'edforma',
host : '45.76.232.86',
ref : 'origin/main',
repo : 'https://github.com/Edforma/EdformaHelper.git',
path : '/home/edforma/pm2Data/EdformaHelper',
'pre-setup': "pwd && ls -la && uname -a && /home/edforma/.bun/bin/bun --version",
"pre-deploy-local": "echo Uploading ecosystem... && scp ecosystem.config.cjs [email protected]:'/home/edforma/' && echo Ecosystem uploaded.",
'post-deploy' : '/home/edforma/.bun/bin/bun install && /home/edforma/.bun/bin/pm2 reload ~/ecosystem.config.cjs --env production',
"env": {
"SENTRY_DSN": "https://[email protected]/6065463",
"SENTRY_TRACESAMPLERATE": 0.5,
"SENTRY_TRACEPROFILERATE": 0.6,
"SERVER_ANNOUNCEMENT": ""
}
}
}
};