aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-12 11:56:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-12 11:56:02 +0200
commitf981dae8617271a2dc713bb683951730b306e0c5 (patch)
treeecee631766bc1b98c20a7836479fed40850c5a56 /server.ts
parent075f16caac5236cb04c98ae7b3a989766d764bb3 (diff)
downloadPeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.gz
PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.zst
PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.zip
Add previews cache system between pods
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index e7fa99c90..a6a9fcb02 100644
--- a/server.ts
+++ b/server.ts
@@ -47,7 +47,7 @@ if (errorMessage !== null) {
47 47
48// ----------- PeerTube modules ----------- 48// ----------- PeerTube modules -----------
49import { migrate, installApplication } from './server/initializers' 49import { migrate, installApplication } from './server/initializers'
50import { JobScheduler, activateSchedulers } from './server/lib' 50import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib'
51import * as customValidators from './server/helpers/custom-validators' 51import * as customValidators from './server/helpers/custom-validators'
52import { apiRouter, clientsRouter, staticRouter } from './server/controllers' 52import { apiRouter, clientsRouter, staticRouter } from './server/controllers'
53 53
@@ -147,6 +147,8 @@ function onDatabaseInitDone () {
147 // Activate job scheduler 147 // Activate job scheduler
148 JobScheduler.Instance.activate() 148 JobScheduler.Instance.activate()
149 149
150 VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE)
151
150 logger.info('Server listening on port %d', port) 152 logger.info('Server listening on port %d', port)
151 logger.info('Webserver: %s', CONFIG.WEBSERVER.URL) 153 logger.info('Webserver: %s', CONFIG.WEBSERVER.URL)
152 }) 154 })