Refactor website with new design & structure

This commit is contained in:
Andrew Miner
2016-04-03 19:30:15 -07:00
parent ec7e8c883d
commit d69585facd
406 changed files with 7411 additions and 37859 deletions
+26
View File
@@ -0,0 +1,26 @@
#
# Crafting Guide - server.coffee
#
# Copyright © 2014-2016 by Redwood Labs
# All rights reserved.
#
CraftingGuideServer = require './crafting_guide_server'
########################################################################################################################
global._ = require './underscore'
global.c = require './constants'
global.w = require 'when'
########################################################################################################################
port = parseInt process.argv[2]
port = if _.isNaN port then c.server.defaultPort else port
server = new CraftingGuideServer port
server.start()
process.on 'SIGINT', ->
server.stop().finally ->
process.exit()