mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 03:13:41 -05:00
13 lines
414 B
CoffeeScript
13 lines
414 B
CoffeeScript
logger = require 'logger-sharelatex'
|
|
settings = require 'settings-sharelatex'
|
|
|
|
Server = require "./app/js/server"
|
|
|
|
if !module.parent # Called directly
|
|
port = settings.internal?.chat?.port or 3010
|
|
host = settings.internal?.chat?.host or "localhost"
|
|
Server.server.listen port, host, (error) ->
|
|
throw error if error?
|
|
logger.info "Chat starting up, listening on #{host}:#{port}"
|
|
|
|
module.exports = Server.server
|