diff --git a/bin/www b/bin/www index 6eb5d131..d9e857a4 100755 --- a/bin/www +++ b/bin/www @@ -25,14 +25,14 @@ */ const app = require('../app'); -const debug = require('debug')('nodejs-rest-http:server'); +const debug = require('debug')('nodejs-rest-http-crud:server'); 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",