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

added discord and other minor changes

This commit is contained in:
2015-10-21 08:24:56 -05:00
parent 5f1fa1cf96
commit 3a7d611871
4 changed files with 10 additions and 3 deletions

3
app.js
View File

@@ -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

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);
/**

View File

@@ -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

View File

@@ -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) {