Skip to content

Commit 130cc15

Browse files
committed
ba
1 parent c4fe1cb commit 130cc15

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
.DS_Store
3+
src/public/css/*.css

app.coffee

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ port = process.env.PORT || 3000
66
path = require 'path'
77
stylus = require 'stylus'
88

9-
app.configure 'production', () ->
9+
app.configure 'development', () ->
1010
app.use(express.logger({format: ':method :url'}))
1111
app.use(express.static(path.join(__dirname, 'src/public')))
1212
app.use(stylus.middleware({src: path.join(__dirname, 'src/public')}))
1313

14+
app.configure 'production', () ->
15+
app.use(express.logger({format: ':method :url'}))
16+
app.use(express.static(path.join(__dirname, 'src/public')))
17+
app.use(stylus.middleware({src: path.join(__dirname, 'src/public'), compress: true}))
18+
1419
app.set 'views', path.join(__dirname, '/src/views')
1520
app.set 'view engine', 'jade'
1621

0 commit comments

Comments
 (0)