Fix bugs that make server not work

This commit is contained in:
Jordan Eldredge 2020-11-19 01:05:28 -05:00
parent 134fade8b9
commit a1c19791f5
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import Sentry from "@sentry/node";
// import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
@ -11,6 +11,7 @@ const app = createApp((action, ctx) => handler.handle(action, ctx));
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
// Initialize Sentry after we start listening. Any crash at start time will appear in the console and we'll notice.
/*
Sentry.init({
dsn:
"https://0e6bc841b4f744b2953a1fe5981effe6@o68382.ingest.sentry.io/5508241",
@ -19,3 +20,4 @@ Sentry.init({
// for finer control
tracesSampleRate: 1.0,
});
*/

View file

@ -40,7 +40,7 @@
"yargs": "^13.2.4"
},
"scripts": {
"start": "ts-node --transpile-only api/server.js",
"start": "ts-node --transpile-only api/server.ts",
"tweet": "ts-node --transpile-only ./cli.ts tweet",
"fetch-metadata": "ts-node --transpile-only ./cli.ts fetch-metadata",
"bot": "ts-node --transpile-only ./discord-bot/index.js",