diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,11 +1,6 @@ | |||
1 | import { registerTSPaths } from './server/helpers/register-ts-paths' | 1 | import { registerTSPaths } from './server/helpers/register-ts-paths' |
2 | registerTSPaths() | 2 | registerTSPaths() |
3 | 3 | ||
4 | import { isTestInstance } from './server/helpers/core-utils' | ||
5 | if (isTestInstance()) { | ||
6 | require('source-map-support').install() | ||
7 | } | ||
8 | |||
9 | // ----------- Node modules ----------- | 4 | // ----------- Node modules ----------- |
10 | import express from 'express' | 5 | import express from 'express' |
11 | import morgan, { token } from 'morgan' | 6 | import morgan, { token } from 'morgan' |
@@ -19,7 +14,7 @@ import { program as cli } from 'commander' | |||
19 | process.title = 'peertube' | 14 | process.title = 'peertube' |
20 | 15 | ||
21 | // Create our main app | 16 | // Create our main app |
22 | const app = express().disable("x-powered-by") | 17 | const app = express().disable('x-powered-by') |
23 | 18 | ||
24 | // ----------- Core checker ----------- | 19 | // ----------- Core checker ----------- |
25 | import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' | 20 | import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' |
@@ -135,6 +130,7 @@ import { HttpStatusCode } from './shared/models/http/http-error-codes' | |||
135 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' | 130 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' |
136 | import { ServerConfigManager } from '@server/lib/server-config-manager' | 131 | import { ServerConfigManager } from '@server/lib/server-config-manager' |
137 | import { VideoViews } from '@server/lib/video-views' | 132 | import { VideoViews } from '@server/lib/video-views' |
133 | import { isTestInstance } from './server/helpers/core-utils' | ||
138 | 134 | ||
139 | // ----------- Command line ----------- | 135 | // ----------- Command line ----------- |
140 | 136 | ||