1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +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
// will print stacktrace
/*
if (app.get('env') === 'development') {
app.use(function(err, req, res, next) {
res.status(err.status || 500);
@@ -58,7 +59,7 @@ if (app.get('env') === 'development') {
});
});
}
*/
// production error handler
// no stacktraces leaked to user
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.
*/
var port = normalizePort(process.env.PORT || '3000');
var port = normalizePort(process.env.PORT || '80');
app.set('port', port);
/**