Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix update host

Chocobozzz20146df21739
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index d9192d5540..54b31d7865 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -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 => {