1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

fixed few things

This commit is contained in:
2015-08-31 19:51:15 -05:00
parent eec9f50229
commit eb8462fce4
2 changed files with 3 additions and 2 deletions

3
app.js
View File

@@ -49,6 +49,7 @@ app.use(function(req, res, next) {
// development error handler // development error handler
// will print stacktrace // will print stacktrace
/*
if (app.get('env') === 'development') { if (app.get('env') === 'development') {
app.use(function(err, req, res, next) { app.use(function(err, req, res, next) {
res.status(err.status || 500); res.status(err.status || 500);
@@ -58,7 +59,7 @@ if (app.get('env') === 'development') {
}); });
}); });
} }
*/
// production error handler // production error handler
// no stacktraces leaked to user // no stacktraces leaked to user
app.use(function(err, req, res, next) { app.use(function(err, req, res, next) {

View File

@@ -12,7 +12,7 @@ var http = require('http');
* Get port from environment and store in Express. * Get port from environment and store in Express.
*/ */
var port = normalizePort(process.env.PORT || '3000'); var port = normalizePort(process.env.PORT || '80');
app.set('port', port); app.set('port', port);
/** /**