-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js.bak
40 lines (39 loc) · 984 Bytes
/
ecosystem.config.js.bak
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
module.exports = {
apps: [
{
name: "english-burning",
script: "bin/www",
interpreter: 'node@16.20.0',
watch: ".",
ignore_watch: ["node_modules", "log.txt", ".git", ".pnpm-store"],
log_date_format: "YYYY-MM-DD HH:mm Z",
log_file: "/tmp/burning-english-log.txt",
env_production: {
NODE_ENV: "production",
DB_URL:
"xxx",
ACCESS_KEY_ID: "xxx",
ACCESS_KEY_SECRET: "xxx",
},
env: {
NODE_ENV: "development",
DB_URL: "mongodb://127.0.0.1:27017/test",
ACCESS_KEY_ID: "xxx",
ACCESS_KEY_SECRET: "xxx",
},
},
],
deploy: {
production: {
user: "xxx",
host: "xxx",
ref: "origin/master",
repo: "git@github.com:tolerious/English-Burning-Backend.git",
path: "/var/www/html",
"pre-deploy-local": "",
"post-deploy":
"source /etc/profile && pm2 delete all",
"pre-setup": "",
},
},
};