Skip to content
Myr

Merge pull request #1502 from qjcg/app-template-noconfigure

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

Remove legacy app.configure() method from app template.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 9df93d6, 44a3fa6 · Browse files · 1 file+13 added−13 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+13 added−13 removed

  • other:+13 added−13 removed

1 file+13 added−13 removed

modified:bin/express+13 added-13 removed
214 unmodified lines
215 , ' , path = require(\'path\');'216 , ''217 , 'var app = express();'218 , ''219 , 'app.configure(function(){'220 , ' app.set(\'port\', process.env.PORT || 3000);'221 , ' app.set(\'views\', __dirname + \'/views\');'222 , ' app.set(\'view engine\', \':TEMPLATE\');'223 , ' app.use(express.favicon());'224 , ' app.use(express.logger(\'dev\'));'225 , ' app.use(express.bodyParser());'226 , ' app.use(express.methodOverride());{sess}'227 , ' app.use(app.router);{css}'228 , ' app.use(express.static(path.join(__dirname, \'public\')));'229 , '});'219 , '// all environments'220 , 'app.set(\'port\', process.env.PORT || 3000);'221 , 'app.set(\'views\', __dirname + \'/views\');'222 , 'app.set(\'view engine\', \':TEMPLATE\');'223 , 'app.use(express.favicon());'224 , 'app.use(express.logger(\'dev\'));'225 , 'app.use(express.bodyParser());'226 , 'app.use(express.methodOverride());{sess}'227 , 'app.use(app.router);{css}'228 , 'app.use(express.static(path.join(__dirname, \'public\')));'229 , ''231 , 'app.configure(\'development\', function(){'230 , '// development only'231 , 'if (\'development\' == app.get(\'env\')) {'232 , ' app.use(express.errorHandler());'233 , '});'233 , '}'234 , ''235 , 'app.get(\'/\', routes.index);'236 , 'app.get(\'/users\', user.list);'237 , ''
185 unmodified lines