mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 19:12:49 +00:00
added discord and other minor changes
This commit is contained in:
3
app.js
3
app.js
@@ -51,7 +51,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);
|
||||||
@@ -61,6 +61,7 @@ if (app.get('env') === 'development') {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// production error handler
|
// production error handler
|
||||||
// no stacktraces leaked to user
|
// no stacktraces leaked to user
|
||||||
|
|||||||
2
bin/www
2
bin/www
@@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
|
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
|
||||||
10 verbose pkgid myapp@0.0.0
|
10 verbose pkgid myapp@0.0.0
|
||||||
11 verbose cwd /home/mitchell/Desktop/mywebsite
|
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"
|
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
|
||||||
14 error node v0.12.4
|
14 error node v0.12.4
|
||||||
15 error npm v2.10.1
|
15 error npm v2.10.1
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ var temperature = mongoose.model('temperature');
|
|||||||
require('../models/posts');
|
require('../models/posts');
|
||||||
var posts = mongoose.model('posts');
|
var posts = mongoose.model('posts');
|
||||||
|
|
||||||
|
router.get('/discord', function(req, res, next) {
|
||||||
|
|
||||||
|
res.redirect('https://discord.gg/0Z2tzxKECEj2BHwj');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
/* GET home page. */
|
/* GET home page. */
|
||||||
router.get('/', function(req, res, next) {
|
router.get('/', function(req, res, next) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user