Skip to content

Commit

Permalink
raven support added
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan787 committed May 18, 2019
1 parent 02977aa commit 8aba934
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 149 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"minio": "^7.0.3",
"pg": "^7.4.3",
"pg-hstore": "^2.3.2",
"raven": "^2.6.4",
"sequelize": "^4.22.6",
"uuid": "^3.3.2"
},
Expand Down
7 changes: 6 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import express = require('express')
import dbg = require('debug')
import path = require ('path')
import Raven = require('raven')
import apiRoute from './routes/api'

const debug = dbg('server:main')

const app = express()

Raven.config('__DSN__').install()
app.use(Raven.requestHandler())
app.use(Raven.errorHandler())

app.use(express.json())
app.use(express.urlencoded({extended: true}))
app.use('/docs', express.static(path.join(__dirname, '../docs')))
Expand Down
Loading

0 comments on commit 8aba934

Please sign in to comment.