Permalink
Browse files

only use static for dev

  • Loading branch information...
1 parent 94e9aba commit e2e3274e74dbbeb3ade0bc2820b33347eae66285 @arlolra committed Apr 28, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 server.js
View
@@ -12,12 +12,15 @@ var express = require('express')
app.engine('html', cons.hogan)
app.set('view engine', 'html')
app.set('views', __dirname + '/views')
-app.use(express.static(__dirname + '/public'))
+
+app.configure('local', function () {
+ app.use(express.static(__dirname + '/public'))
+})
// attach various things
routes(app)
// listen
app.listen(port, function () {
console.log(pack.name + ' now listening on port ' + port)
-})
+})

0 comments on commit e2e3274

Please sign in to comment.