mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 20:51:23 +00:00
14 lines
No EOL
307 B
JavaScript
14 lines
No EOL
307 B
JavaScript
"use strict";
|
|
|
|
var env = process.env.NODE_ENV || "development";
|
|
|
|
var fs = require("fs");
|
|
var path = require("path");
|
|
|
|
var baseConfig = require(path.join(__dirname, path.join("environments/" + env)));
|
|
|
|
if (process.env.PORT) {
|
|
baseConfig.port = parseInt(process.env.PORT, 10);
|
|
}
|
|
|
|
module.exports = baseConfig; |