mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-25 13:51:00 +00:00
Expanded config for mongo
This commit is contained in:
parent
e49f4ffa77
commit
4dc825ef05
4 changed files with 23 additions and 3 deletions
|
@ -11,4 +11,12 @@ if (process.env.PORT) {
|
|||
baseConfig.port = parseInt(process.env.PORT, 10);
|
||||
}
|
||||
|
||||
if (process.env.MONGOLAB_URI) {
|
||||
baseConfig.mongo.uri = process.env.MONGOLAB_URI;
|
||||
}
|
||||
|
||||
if (process.env.RAILS_SECRET) {
|
||||
baseConfig.secret_token = process.env.RAILS_SECRET;
|
||||
}
|
||||
|
||||
module.exports = baseConfig;
|
|
@ -1,7 +1,11 @@
|
|||
"use strict";
|
||||
|
||||
var config = {
|
||||
port: 8000
|
||||
port: 8000,
|
||||
mongo: {
|
||||
uri: "mongodb://localhost/swsgather_development"
|
||||
},
|
||||
secret_token: ""
|
||||
};
|
||||
|
||||
module.exports = config;
|
|
@ -1,7 +1,11 @@
|
|||
"use strict";
|
||||
|
||||
var config = {
|
||||
port: 8080
|
||||
port: 8080,
|
||||
mongo: {
|
||||
uri: "" // Set using MONGOLAB_URI
|
||||
},
|
||||
secret_token: ""
|
||||
};
|
||||
|
||||
module.exports = config;
|
|
@ -1,7 +1,11 @@
|
|||
"use strict";
|
||||
|
||||
var config = {
|
||||
port: 9000
|
||||
port: 9000,
|
||||
mongo: {
|
||||
uri: "mongodb://localhost/swsgather_development"
|
||||
},
|
||||
secret_token: ""
|
||||
};
|
||||
|
||||
module.exports = config;
|
Loading…
Reference in a new issue