aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-13 10:00:17 +0200
committerChocobozzz <me@florianbigard.com>2022-07-13 10:00:17 +0200
commitdea0df90d50327588933eeb7de748fb31485ad45 (patch)
tree93e291ab5a1c69675ff44576d8ee0f0cba0ef0f2
parent5ed6bc77cad455e5ac3bae03b094ff2022366da1 (diff)
downloadPeerTube-dea0df90d50327588933eeb7de748fb31485ad45.tar.gz
PeerTube-dea0df90d50327588933eeb7de748fb31485ad45.tar.zst
PeerTube-dea0df90d50327588933eeb7de748fb31485ad45.zip
Start Redis earlier
-rw-r--r--server.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index 7ab20643b..e69ad7fb7 100644
--- a/server.ts
+++ b/server.ts
@@ -283,7 +283,7 @@ async function startApplication () {
283 checkFFmpegVersion() 283 checkFFmpegVersion()
284 .catch(err => logger.error('Cannot check ffmpeg version', { err })) 284 .catch(err => logger.error('Cannot check ffmpeg version', { err }))
285 285
286 // Email initialization 286 Redis.Instance.init()
287 Emailer.Instance.init() 287 Emailer.Instance.init()
288 288
289 await Promise.all([ 289 await Promise.all([
@@ -313,7 +313,6 @@ async function startApplication () {
313 GeoIPUpdateScheduler.Instance.enable() 313 GeoIPUpdateScheduler.Instance.enable()
314 OpenTelemetryMetrics.Instance.registerMetrics() 314 OpenTelemetryMetrics.Instance.registerMetrics()
315 315
316 Redis.Instance.init()
317 PeerTubeSocket.Instance.init(server) 316 PeerTubeSocket.Instance.init(server)
318 VideoViewsManager.Instance.init() 317 VideoViewsManager.Instance.init()
319 318