From 3a7d611871d9cb575e992deeba4175d149f0e6ac Mon Sep 17 00:00:00 2001 From: mgerb42 Date: Wed, 21 Oct 2015 08:24:56 -0500 Subject: [PATCH] added discord and other minor changes --- app.js | 3 ++- bin/www | 2 +- npm-debug.log | 2 +- routes/index.js | 6 ++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 847eb6e..8bfd4a8 100644 --- a/app.js +++ b/app.js @@ -51,7 +51,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); @@ -61,6 +61,7 @@ if (app.get('env') === 'development') { }); }); } +*/ // production error handler // no stacktraces leaked to user diff --git a/bin/www b/bin/www index 87ffb43..d2484eb 100755 --- a/bin/www +++ b/bin/www @@ -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); /** diff --git a/npm-debug.log b/npm-debug.log index f57af35..41ac54d 100644 --- a/npm-debug.log +++ b/npm-debug.log @@ -17,7 +17,7 @@ 9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 10 verbose pkgid myapp@0.0.0 11 verbose cwd /home/mitchell/Desktop/mywebsite -12 error Linux 3.13.0-65-generic +12 error Linux 3.13.0-66-generic 13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 14 error node v0.12.4 15 error npm v2.10.1 diff --git a/routes/index.js b/routes/index.js index dd748d3..4631ee9 100644 --- a/routes/index.js +++ b/routes/index.js @@ -11,6 +11,12 @@ var temperature = mongoose.model('temperature'); require('../models/posts'); var posts = mongoose.model('posts'); +router.get('/discord', function(req, res, next) { + + res.redirect('https://discord.gg/0Z2tzxKECEj2BHwj'); + +}); + /* GET home page. */ router.get('/', function(req, res, next) {