From 476889751599a01966a65f4d4e66f70974750d11 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 23 Apr 2018 17:53:47 +0000 Subject: [PATCH] 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 bucharest-gold/centos7-s2i-nodejs#33\#issuecomment-382587104. fixes #93 --- bin/www | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/www b/bin/www index 6eb5d131..7f41f95d 100755 --- a/bin/www +++ b/bin/www @@ -32,7 +32,7 @@ const http = require('http'); * Get port from environment and store in Express. */ -const port = normalizePort(process.env.PORT || '3000'); +const port = normalizePort(process.env.PORT || '8080'); app.set('port', port); /** diff --git a/package.json b/package.json index 5065b08c..baf41a44 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,9 @@ "release": "standard-version -a", "openshift": "nodeshift --strictSSL=false --nodeVersion=8.x", "postinstall": "license-reporter report -s && license-reporter save -s --xml licenses.xml", - "start": "PORT=8080 node ./bin/www" + "start": "node ." }, + "main": "./bin/www", "standard-version": { "scripts": { "postbump": "npm run postinstall && node release.js",