Merge pull request #105 from watercrossing/listenToHost

Add logic to bind the web app to a specific host
This commit is contained in:
James Allen 2014-09-02 12:13:50 +01:00
commit 9d7b52ca4d

View file

@ -35,7 +35,8 @@ if Settings.catchErrors
BackgroundTasks.run()
port = Settings.port or Settings.internal?.web?.port or 3000
Server.server.listen port, ->
host = Settings.internal.web.host or "localhost"
Server.server.listen port, host, ->
logger.info("web-sharelatex listening on port #{port}")
logger.info("#{require('http').globalAgent.maxSockets} sockets enabled")
if argv.user