Skip to content
Myr

Removed module.parent check from express(1) generated app. Closes #670

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

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:bin/express+2 added-6 removed
215 unmodified lines
216 , ' title: \'Express\''217 , ' });'218 , '});'219 , ''220 , '// Only listen on $ node app.js'220 , 'app.listen(3000);'221 , 'console.log("Express server listening on port %d", app.address().port);'222 , ''222 , 'if (!module.parent) {'223 , ' app.listen(3000);'224 , ' console.log("Express server listening on port %d", app.address().port);'225 , '}'226 , ''223].join('\n');224225// Parse arguments226
221 unmodified lines