user port from env if available
This commit is contained in:
parent
97f3c5a523
commit
21a71ba103
1 changed files with 4 additions and 0 deletions
|
|
@ -219,10 +219,14 @@ function start_server(cb) {
|
|||
|
||||
if (server_data && server_data.port) {
|
||||
port = server_data.port;
|
||||
} else if (process.env.PORT) {
|
||||
port = process.env.PORT
|
||||
} else {
|
||||
port = config.editor.port;
|
||||
}
|
||||
|
||||
|
||||
|
||||
winston.info('listening on port ' + port);
|
||||
cb(app.listen(port));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue