Skip to content

Commit 6c7ae86

Browse files
committed
fix: use the main prop for the application entry point.
npm start will now look at the main property for the entry point. Port 8080 is now set as the default port instead of 3000. This is a fix related to nodeshift-archived/centos7-s2i-nodejs#33\#issuecomment-382587104. fixes nodeshift-starters#45
1 parent c926a61 commit 6c7ae86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/www

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const http = require('http');
3232
* Get port from environment and store in Express.
3333
*/
3434

35-
const port = normalizePort(process.env.PORT || '3000');
35+
const port = normalizePort(process.env.PORT || '8080');
3636
app.set('port', port);
3737

3838
/**

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"release": "standard-version -a",
1818
"openshift": "nodeshift --strictSSL=false --nodeVersion=8.x",
1919
"postinstall": "license-reporter report -s && license-reporter save -s --xml licenses.xml",
20-
"start": "PORT=8080 node ./bin/www"
20+
"start": "PORT=8080 node ."
2121
},
22+
"main": "./bin/www",
2223
"standard-version": {
2324
"scripts": {
2425
"postbump": "npm run postinstall && node release.js",

0 commit comments

Comments
 (0)