Skip to content

Instantly share code, notes, and snippets.

@dangerbell
Created November 1, 2012 19:49
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 dangerbell/3996007 to your computer and use it in GitHub Desktop.
Save dangerbell/3996007 to your computer and use it in GitHub Desktop.
Example Express config file
express = require 'express'
config = (app) ->
# Configuration
app.set 'port', process.env.PORT || 3000
app.use express.favicon()
app.use express.methodOverride() # Allows the use of HTTP 'DELETE' AND 'PUT' methods.
app.use express.logger()
app.use app.router
app.use express.errorHandler()
module.exports = config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment