Skip to content
Myr

Added views / reload views settings to bin/express app

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent cfa3470 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:bin/express+3 added-1 removed
75 unmodified lines
76 '',77 '// Configuration',78 '',79 'app.configure(function(){',80 ' app.set(\'views\', __dirname + \'/views\');',81 ' app.use(\'/\', connect.bodyDecoder());',82 ' app.use(\'/\', connect.methodOverride());',83 ' app.use(\'/\', connect.compiler({ src: __dirname + \'/public\', enable: [\'sass\'] }));',84 ' app.use(\'/\', connect.staticProvider(__dirname + \'/public\'));',85 '});',86 '',87 'app.configure(\'development\', function(){',88 ' app.set(\'reload views\', 1000);',87 ' app.use(\'/\', connect.errorHandler({ dumpExceptions: true, showStack: true })); ',89 ' app.use(\'/\', connect.errorHandler({ dumpExceptions: true, showStack: true })); ',90 '});',91 '',92 'app.configure(\'production\', function(){',93 ' app.use(\'/\', connect.errorHandler()); ',
87 unmodified lines