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