diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -26,7 +26,7 @@ process.title = 'peertube' | |||
26 | const app = express() | 26 | const app = express() |
27 | 27 | ||
28 | // ----------- Core checker ----------- | 28 | // ----------- Core checker ----------- |
29 | import { checkMissedConfig, checkFFmpeg } from './server/initializers/checker-before-init' | 29 | import { 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) |
32 | import { CONFIG } from './server/initializers/config' | 32 | import { CONFIG } from './server/initializers/config' |
@@ -45,6 +45,8 @@ checkFFmpeg(CONFIG) | |||
45 | process.exit(-1) | 45 | process.exit(-1) |
46 | }) | 46 | }) |
47 | 47 | ||
48 | checkNodeVersion() | ||
49 | |||
48 | import { checkConfig, checkActivityPubUrls } from './server/initializers/checker-after-init' | 50 | import { checkConfig, checkActivityPubUrls } from './server/initializers/checker-after-init' |
49 | 51 | ||
50 | const errorMessage = checkConfig() | 52 | const errorMessage = checkConfig() |