-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
38 lines (32 loc) · 1.01 KB
/
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
function setDevelopmentConfig(){
// These are just examples, insert you info here
DatabaseConfig.port = 45137;
DatabaseConfig.host = 'ds045137.mongolab.com';
DatabaseConfig.name = 'devcamp';
DatabaseConfig.user = 'camper';
DatabaseConfig.pass = '!helloea';
EnvConfig.port = 3000;
};
function setProductionConfig(){
// These are just examples, insert you info here
DatabaseConfig.port = 45137;
DatabaseConfig.host = 'ds045137.mongolab.com';
DatabaseConfig.name = 'devcamp';
DatabaseConfig.user = 'camper';
DatabaseConfig.pass = '!helloea';
EnvConfig.port = 3000;
}
var DatabaseConfig = {
port : Number,
host : String,
name : String,
user : String,
pass : String
};
var EnvConfig = {
port : Number
};
module.exports.DatabaseConfig = DatabaseConfig;
module.exports.EnvConfig = EnvConfig;
module.exports.setDevelopmentConfig = setDevelopmentConfig;
module.exports.setProductionConfig = setProductionConfig;