1 Star 0 Fork 1

MilitiFS/codecombat

forked from neojayll/codecombat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server.coffee 824 Bytes
一键复制 编辑 原始数据 按行查看 历史
Joe Mifsud 提交于 2020-01-02 20:45 . Drop new relic (not used) (#5721)
do (setupLodash = this) ->
GLOBAL._ = require 'lodash'
_.str = require 'underscore.string'
_.mixin _.str.exports()
express = require 'express'
http = require 'http'
log = require 'winston'
serverSetup = require './server_setup'
co = require 'co'
config = require './server_config'
Promise = require 'bluebird'
module.exports.startServer = (done) ->
app = createAndConfigureApp()
httpServer = http.createServer(app).listen app.get('port'), -> done?()
log.info('Express SSL server listening on port ' + app.get('port'))
{app, httpServer}
createAndConfigureApp = module.exports.createAndConfigureApp = ->
app = express()
if config.forceCompression
compression = require('compression')
app.use(compression())
serverSetup.setExpressConfigurationOptions app
serverSetup.setupMiddleware app
app
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/militifs_admin/codecombat.git
git@gitee.com:militifs_admin/codecombat.git
militifs_admin
codecombat
codecombat
master

搜索帮助