aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index 35ccc6758..aaf1ea021 100644
--- a/server.ts
+++ b/server.ts
@@ -138,6 +138,7 @@ import { ServerConfigManager } from '@server/lib/server-config-manager'
138import { VideoViewsManager } from '@server/lib/views/video-views-manager' 138import { VideoViewsManager } from '@server/lib/views/video-views-manager'
139import { isTestOrDevInstance } from './server/helpers/core-utils' 139import { isTestOrDevInstance } from './server/helpers/core-utils'
140import { OpenTelemetryMetrics } from '@server/lib/opentelemetry/metrics' 140import { OpenTelemetryMetrics } from '@server/lib/opentelemetry/metrics'
141import { ApplicationModel } from '@server/models/application/application'
141 142
142// ----------- Command line ----------- 143// ----------- Command line -----------
143 144
@@ -330,12 +331,17 @@ async function startApplication () {
330 server.listen(port, hostname, async () => { 331 server.listen(port, hostname, async () => {
331 if (cliOptions.plugins) { 332 if (cliOptions.plugins) {
332 try { 333 try {
334 await PluginManager.Instance.rebuildNativePluginsIfNeeded()
335
333 await PluginManager.Instance.registerPluginsAndThemes() 336 await PluginManager.Instance.registerPluginsAndThemes()
334 } catch (err) { 337 } catch (err) {
335 logger.error('Cannot register plugins and themes.', { err }) 338 logger.error('Cannot register plugins and themes.', { err })
336 } 339 }
337 } 340 }
338 341
342 ApplicationModel.updateNodeVersions()
343 .catch(err => logger.error('Cannot update node versions.', { err }))
344
339 logger.info('HTTP server listening on %s:%d', hostname, port) 345 logger.info('HTTP server listening on %s:%d', hostname, port)
340 logger.info('Web server: %s', WEBSERVER.URL) 346 logger.info('Web server: %s', WEBSERVER.URL)
341 347