Fix update host
authorChocobozzz <me@florianbigard.com>
Wed, 27 Nov 2019 10:38:40 +0000 (11:38 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 27 Nov 2019 10:38:40 +0000 (11:38 +0100)
scripts/update-host.ts

index d9192d5540c9f832f8a09e257514e3c78cd6b0e8..54b31d7865814267ed0fcb85798280f0d40fa7cb 100755 (executable)
@@ -1,4 +1,6 @@
 import { registerTSPaths } from '../server/helpers/register-ts-paths'
+registerTSPaths()
+
 import { WEBSERVER } from '../server/initializers/constants'
 import { ActorFollowModel } from '../server/models/activitypub/actor-follow'
 import { VideoModel } from '../server/models/video/video'
@@ -19,8 +21,6 @@ import { VideoStreamingPlaylistModel } from '../server/models/video/video-stream
 import { initDatabaseModels } from '../server/initializers'
 import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent'
 
-registerTSPaths()
-
 run()
   .then(() => process.exit(0))
   .catch(err => {