Created
January 24, 2012 23:40
-
-
Save st23am/1673530 to your computer and use it in GitHub Desktop.
Serve multiple directions of static assets in node.js with express
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') | |
app = module.exports = express.createServer() | |
app.configure('development', -> | |
app.use(express.static("./public")) | |
app.use('/test', express.static("./test/public")) | |
#serve up specs.js when were in development for jasmine dom tests in the browser | |
app.get(hem.options.specsPath, hem.specsPackage().createServer()) | |
app.use(express.errorHandler({ dumpExceptions: true, showStack: true })) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment