-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LGTMs Jon
- Loading branch information
Showing
7 changed files
with
104 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.10.15 | ||
v0.10.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
application = require('../application') | ||
application = require '../application' | ||
express = require 'express' | ||
|
||
module.exports = (app) -> | ||
app.use express.logger('dev') | ||
application app | ||
app.configure 'development', -> | ||
app.use express.errorHandler() | ||
application app, (app) -> | ||
app.configure 'development', -> | ||
app.use (req, res, next) -> | ||
res.send('Page not found', 404) | ||
app.use (error, req, res, next) -> | ||
res.send('500: Internal Server Error', 500) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
application = require('../application') | ||
express = require 'express' | ||
raygun = require('raygun') | ||
Raygun = new raygun.Client().init({ apiKey: 'SBuL7PyTCi3Qgx2UkUqgGA==' }) | ||
|
||
module.exports = (app) -> | ||
app.configure -> | ||
application app, (app) -> | ||
app.configure 'production', -> | ||
app.use express.errorHandler() | ||
|
||
app.use (req, res, next) -> | ||
Raygun.send new Error("404 @ #{req.url}") | ||
res.send(404, '404: Page not found') | ||
|
||
app.use (error, req, res, next) -> | ||
Raygun.send error | ||
res.send(500, '500: Internal Server Error') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.