-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
51 lines (46 loc) · 800 Bytes
/
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
const env = process.env.NODE_ENV; // 'dev' or 'test'
const dev = {
app: {
port: 3000,
url: "http://localhost:3000",
apiUrl: "http://localhost:3000/api",
mapsDir: "maps"
},
db: {
host: 'localhost',
port: 27017,
name: 'tyto'
}
};
const production = {
app: {
port: 8752,
url : "https://tyto.thomasguesnon.net",
apiUrl: "https://tyto.thomasguesnon.net/api",
mapsDir: "maps"
},
db: {
host: 'localhost',
port: 27017,
name: 'tyto'
}
};
const staging = {
app: {
port: 9863,
url : "https://tytolive.thomasguesnon.net",
apiUrl: "https://tytolive.thomasguesnon.net/api",
mapsDir: "maps"
},
db: {
host: 'localhost',
port: 27017,
name: 'tytolive'
}
};
const config = {
dev,
production,
staging
};
module.exports = config[env];