aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-07 12:04:06 +0200
committerChocobozzz <me@florianbigard.com>2019-08-07 12:07:59 +0200
commit51c3544718f751dbba4ece9aec39c53fab524c88 (patch)
treebf00c6b0f596642a1db6ac6d61229ae7aaa72bc3 /server.ts
parent0763044f7d11a56dd5c5c424771dd83c76159de2 (diff)
downloadPeerTube-51c3544718f751dbba4ece9aec39c53fab524c88.tar.gz
PeerTube-51c3544718f751dbba4ece9aec39c53fab524c88.tar.zst
PeerTube-51c3544718f751dbba4ece9aec39c53fab524c88.zip
Deprecate Node 8
The support ends on December 2019: https://github.com/nodejs/Release#release-schedule
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 abfeeed2e..6896add34 100644
--- a/server.ts
+++ b/server.ts
@@ -26,7 +26,7 @@ process.title = 'peertube'
26const app = express() 26const app = express()
27 27
28// ----------- Core checker ----------- 28// ----------- Core checker -----------
29import { checkMissedConfig, checkFFmpeg } from './server/initializers/checker-before-init' 29import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init'
30 30
31// Do not use barrels because we don't want to load all modules here (we need to initialize database first) 31// Do not use barrels because we don't want to load all modules here (we need to initialize database first)
32import { CONFIG } from './server/initializers/config' 32import { CONFIG } from './server/initializers/config'
@@ -45,6 +45,8 @@ checkFFmpeg(CONFIG)
45 process.exit(-1) 45 process.exit(-1)
46 }) 46 })
47 47
48checkNodeVersion()
49
48import { checkConfig, checkActivityPubUrls } from './server/initializers/checker-after-init' 50import { checkConfig, checkActivityPubUrls } from './server/initializers/checker-after-init'
49 51
50const errorMessage = checkConfig() 52const errorMessage = checkConfig()