X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.ts;h=3859964702cedb542e023a380b025f45023117cc;hb=653dbc5b57f541bab01f304630ffb9e528b1c5af;hp=f4f448e6b4732304b7c0f642067d3e8198f10171;hpb=5a637488778055906dbacdca735565b2f46f0cf7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.ts b/server.ts index f4f448e6b..385996470 100644 --- a/server.ts +++ b/server.ts @@ -1,11 +1,3 @@ -import { registerTSPaths } from './server/helpers/register-ts-paths' -registerTSPaths() - -import { isTestInstance } from './server/helpers/core-utils' -if (isTestInstance()) { - require('source-map-support').install() -} - // ----------- Node modules ----------- import express from 'express' import morgan, { token } from 'morgan' @@ -19,7 +11,7 @@ import { program as cli } from 'commander' process.title = 'peertube' // Create our main app -const app = express().disable("x-powered-by") +const app = express().disable('x-powered-by') // ----------- Core checker ----------- import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' @@ -135,6 +127,7 @@ import { HttpStatusCode } from './shared/models/http/http-error-codes' import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' import { ServerConfigManager } from '@server/lib/server-config-manager' import { VideoViews } from '@server/lib/video-views' +import { isTestInstance } from './server/helpers/core-utils' // ----------- Command line -----------