mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
Ignore flags for test
This commit is contained in:
parent
1d40317281
commit
4ef01d7a28
1 changed files with 4 additions and 3 deletions
|
@ -1,21 +1,22 @@
|
|||
"use strict";
|
||||
|
||||
var env = process.env.NODE_ENV || "development";
|
||||
var test = env === "test";
|
||||
|
||||
var fs = require("fs");
|
||||
var path = require("path");
|
||||
|
||||
var baseConfig = require(path.join(__dirname, path.join("environments/" + env.toLowerCase())));
|
||||
|
||||
if (process.env.PORT) {
|
||||
if (!test && process.env.PORT) {
|
||||
baseConfig.port = parseInt(process.env.PORT, 10);
|
||||
}
|
||||
|
||||
if (process.env.MONGOLAB_URI) {
|
||||
if (!test && process.env.MONGOLAB_URI) {
|
||||
baseConfig.mongo.uri = process.env.MONGOLAB_URI;
|
||||
}
|
||||
|
||||
if (process.env.RAILS_SECRET) {
|
||||
if (!test && process.env.RAILS_SECRET) {
|
||||
baseConfig.secret_token = process.env.RAILS_SECRET;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue