diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-07 12:04:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-07 12:07:59 +0200 |
commit | 51c3544718f751dbba4ece9aec39c53fab524c88 (patch) | |
tree | bf00c6b0f596642a1db6ac6d61229ae7aaa72bc3 /server.ts | |
parent | 0763044f7d11a56dd5c5c424771dd83c76159de2 (diff) | |
download | PeerTube-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.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() |