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.
|
// Get PORT from environment and store in Express.
|
||||||
this.app.set('port', Config.port);
|
this.app.set('port', Config.PORT);
|
||||||
|
|
||||||
// Create HTTP server.
|
// Create HTTP server.
|
||||||
this.server = _http.createServer(this.app);
|
this.server = _http.createServer(this.app);
|
||||||
|
|
||||||
//Listen on provided port, on all network interfaces.
|
//Listen on provided PORT, on all network interfaces.
|
||||||
this.server.listen(Config.port);
|
this.server.listen(Config.PORT);
|
||||||
this.server.on('error', this.onError);
|
this.server.on('error', this.onError);
|
||||||
this.server.on('listening', this.onListening);
|
this.server.on('listening', this.onListening);
|
||||||
|
|
||||||
@ -109,9 +109,9 @@ export class Server {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
var bind = typeof Config.port === 'string'
|
var bind = typeof Config.PORT === 'string'
|
||||||
? 'Pipe ' + Config.port
|
? 'Pipe ' + Config.PORT
|
||||||
: 'Port ' + Config.port;
|
: 'Port ' + Config.PORT;
|
||||||
|
|
||||||
// handle specific listen error with friendly messages
|
// handle specific listen error with friendly messages
|
||||||
switch (error.code) {
|
switch (error.code) {
|
||||||
|
@ -39,7 +39,7 @@ module.exports = function(config) {
|
|||||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||||
reporters: [ 'mocha', 'coverage', 'coveralls' ],
|
reporters: [ 'mocha', 'coverage', 'coveralls' ],
|
||||||
|
|
||||||
// web server port
|
// web server PORT
|
||||||
port: 9876,
|
port: 9876,
|
||||||
|
|
||||||
// enable / disable colors in the output (reporters and logs)
|
// enable / disable colors in the output (reporters and logs)
|
||||||
|
Loading…
Reference in New Issue
Block a user