mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-05 17:20:05 +08:00
Allow the server port to be configurable via config.js
This commit is contained in:
@@ -16,7 +16,7 @@ app.configure(function() {
|
||||
app.use(express.errorHandler({dumpExceptions: true, showStack: true}));
|
||||
});
|
||||
|
||||
var port = 3000;
|
||||
var port = config.port;
|
||||
server.listen(port, function() {
|
||||
console.log( 'Express server listening on port %d in %s mode', port, app.settings.env );
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user