Skip to content
Myr

Fixing express(1) for upcomming express

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 a751346 · Browse files · 1 file+6 added−6 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+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:bin/express+6 added-6 removed
176 unmodified lines
177 , ' * Module dependencies.'178 , ' */'179 , ''180 , 'var express = require(\'express\')'181 , ' , routes = require(\'./routes\');'181 , ' , routes = require(\'./routes\')'182 , ' , http = require(\'http\');'183 , ''183 , 'var app = module.exports = express.createServer();'184 , 'var app = module.exports = express();'185 , ''186 , 'app.configure(function(){'187 , ' app.set(\'views\', __dirname + \'/views\');'188 , ' app.set(\'view engine\', \':TEMPLATE\');'
13 unmodified lines
202 , '});'203 , ''204 , 'app.get(\'/\', routes.index);'205 , ''205 , 'app.listen(3000);'206 , 'console.log("Express server listening on port %d in %s mode"'207 , ' , app.address().port'208 , ' , app.settings.env);'206 , 'http.createServer(app).listen(3000);'207 , ''208 , 'console.log("Express server listening for connections");'209 , ''210].join('\n');211212// Generate application213
154 unmodified lines