mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
changing port name to PORT
This commit is contained in:
parent
249d16e068
commit
5b00de3c10
@ -84,14 +84,14 @@ export class Server {
|
||||
|
||||
|
||||
|
||||
// Get port from environment and store in Express.
|
||||
this.app.set('port', Config.port);
|
||||
// Get PORT from environment and store in Express.
|
||||
this.app.set('port', Config.PORT);
|
||||
|
||||
// Create HTTP server.
|
||||
this.server = _http.createServer(this.app);
|
||||
|
||||
//Listen on provided port, on all network interfaces.
|
||||
this.server.listen(Config.port);
|
||||
//Listen on provided PORT, on all network interfaces.
|
||||
this.server.listen(Config.PORT);
|
||||
this.server.on('error', this.onError);
|
||||
this.server.on('listening', this.onListening);
|
||||
|
||||
@ -109,9 +109,9 @@ export class Server {
|
||||
throw error;
|
||||
}
|
||||
|
||||
var bind = typeof Config.port === 'string'
|
||||
? 'Pipe ' + Config.port
|
||||
: 'Port ' + Config.port;
|
||||
var bind = typeof Config.PORT === 'string'
|
||||
? 'Pipe ' + Config.PORT
|
||||
: 'Port ' + Config.PORT;
|
||||
|
||||
// handle specific listen error with friendly messages
|
||||
switch (error.code) {
|
||||
|
@ -39,7 +39,7 @@ module.exports = function(config) {
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: [ 'mocha', 'coverage', 'coveralls' ],
|
||||
|
||||
// web server port
|
||||
// web server PORT
|
||||
port: 9876,
|
||||
|
||||
// enable / disable colors in the output (reporters and logs)
|
||||
|
Loading…
Reference in New Issue
Block a user