This repository was archived by the owner on Oct 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ var express = require('express');
55var expressSession = require ( 'express-session' ) ;
66var app = express ( ) ;
77var logger = require ( 'morgan' ) ;
8- var port = process . env . PORT || 8001 ;
98var four0four = require ( './utils/404' ) ( ) ;
109
11- var environment = process . env . NODE_ENV ;
10+ var options = require ( './utils/options' ) ( ) ;
11+ var port = options . appPort ;
12+ var environment = options . env ;
1213
1314app . use ( expressSession ( {
1415 name : '@sample-app-name' ,
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ module.exports = function(){
1010 var envJson = getEnvOptions ( environment === 'build' ? 'prod' : 'local' ) ;
1111
1212 var options = {
13+ env : environment ,
1314 appName : process . env . APP_NAME || envJson [ 'app-name' ] || 'slush-app' ,
14- appPort : process . env . APP_PORT || envJson [ 'node-port' ] || config . defaultPort ,
15+ appPort : process . env . APP_PORT || process . env . PORT || envJson [ 'node-port' ] || config . defaultPort ,
1516 mlHost : process . env . ML_HOST || envJson [ 'ml-host' ] || config . marklogic . host ,
1617 mlHttpPort : process . env . ML_PORT || envJson [ 'ml-http-port' ] || config . marklogic . httpPort ,
1718 defaultUser : process . env . ML_APP_USER || envJson [ 'ml-app-user' ] || config . marklogic . user ,
Original file line number Diff line number Diff line change 4242 "gulp-uglify" : " ^1.4.1" ,
4343 "gulp-useref" : " ^3.0.0" ,
4444 "gulp-util" : " ^3.0.5" ,
45+ "inquirer" : " ^0.12.0" ,
4546 "jasmine-core" : " ^2.3.4" ,
4647 "jshint" : " ^2.0.0" ,
4748 "jshint-stylish" : " ^2.0.0" ,
6061 "node-notifier" : " ^4.2.3" ,
6162 "phantomjs-prebuilt" : " ^2.0.0" ,
6263 "plato" : " ^1.5.0" ,
64+ "q" : " ^1.0.0" ,
6365 "sinon" : " ^1.15.3" ,
6466 "sinon-chai" : " ^2.8.0" ,
67+ "underscore.string" : " ^3.2.2" ,
6568 "wiredep" : " ^3.0.0" ,
6669 "yargs" : " ^3.26.0"
6770 },
You can’t perform that action at this time.
0 commit comments