Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
arsnova-click-v2-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
7b0d19fb
Commit
7b0d19fb
authored
Nov 25, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Works on sentry config
parent
7972d7ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
.gitlab-ci.yml
.gitlab-ci.yml
+0
-1
src/App.ts
src/App.ts
+3
-1
src/main.ts
src/main.ts
+2
-2
No files found.
.gitlab-ci.yml
View file @
7b0d19fb
...
...
@@ -44,7 +44,6 @@ build:
script
:
-
npm install
-
export NODE_ENV='production'
-
export SENTRY_DSN='https://c8d694a532814105b667236ffb2181e4@sentry.io/1833051'
-
export ARSNOVA_CLICK_BACKEND_PORT_INTERNAL='3000'
-
export ARSNOVA_CLICK_BACKEND_ROUTE_PREFIX='/backend'
-
export LEADERBOARD_ALGORITHM='PointBased'
...
...
src/App.ts
View file @
7b0d19fb
import
{
Handlers
}
from
'
@sentry/node
'
;
import
*
as
bodyParser
from
'
body-parser
'
;
import
*
as
compress
from
'
compression
'
;
import
*
as
cors
from
'
cors
'
;
...
...
@@ -20,7 +21,6 @@ import { LobbyRouter } from './routers/rest/LobbyRouter';
import
{
MemberRouter
}
from
'
./routers/rest/MemberRouter
'
;
import
{
NicksRouter
}
from
'
./routers/rest/NicksRouter
'
;
import
{
QuizRouter
}
from
'
./routers/rest/QuizRouter
'
;
import
{
dynamicStatistics
,
staticStatistics
}
from
'
./statistics
'
;
declare
var
global
:
any
;
...
...
@@ -55,10 +55,12 @@ class App {
// Run configuration methods on the Express instance.
constructor
()
{
this
.
_express
=
express
();
this
.
_express
.
use
(
Handlers
.
requestHandler
());
this
.
middleware
();
this
.
routes
();
this
.
_express
.
use
(
Handlers
.
errorHandler
());
useExpressServer
(
this
.
_express
,
routingControllerOptions
);
}
...
...
src/main.ts
View file @
7b0d19fb
declare
function
require
(
name
:
string
):
any
;
import
{
init
as
sentryInit
}
from
'
@sentry/node
'
;
import
*
as
http
from
'
http
'
;
import
{
Server
}
from
'
http
'
;
import
*
as
Minimist
from
'
minimist
'
;
...
...
@@ -45,8 +46,7 @@ interface IInetAddress {
}
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
const
Sentry
=
require
(
'
@sentry/node
'
);
Sentry
.
init
({
dsn
:
process
.
env
.
SENTRY_DSN
});
sentryInit
({
dsn
:
process
.
env
.
SENTRY_DSN
});
}
(
<
IGlobal
>
global
).
DAO
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment