Skip to content

Instantly share code, notes, and snippets.

@dimroc
Created August 19, 2011 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimroc/1156230 to your computer and use it in GitHub Desktop.
Save dimroc/1156230 to your computer and use it in GitHub Desktop.
Zappa Coffee-Script Entry file
port = Number(process.env.VMC_APP_PORT || process.env.C9_PORT || process.env.PORT || 5000)
zappa = require('zappa')
zappa port, ->
publicDir = __dirname + '/public'
use 'logger', 'bodyParser', 'methodOverride', app.router
use express.compiler(src: publicDir, enable: ['sass', 'coffeescript'])
use 'static'
configure
development: -> use errorHandler: {dumpExceptions: on, showStack: on}
production: -> use 'errorHandler'
# Include models
include 'models/canvas'
#Include controllers
include 'controllers/canvas'
include 'controllers/root'
#Include views
include 'views/canvas'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment