Created
November 1, 2012 19:49
-
-
Save dangerbell/3996007 to your computer and use it in GitHub Desktop.
Example Express config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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