Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use the main prop for the application entry point. #94

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down