bump version

This commit is contained in:
undefined committed 2022-11-18 00:11:34 +08:00
1 parent c4dced87ff
commit 17def9cbb5
6 files changed
+7 -10

No files matched your search

+1 -4
View File
@@ -1,8 +1,5 @@
const versionNum = +process.version.replace(/v/gim, '').split('.')[0];
if (versionNum < 12) throw new Error('NodeJS >=12 required');
else if (versionNum < 14 && process.env.NODE_APP_INSTANCE === '0') {
console.warn('NodeJS version <14, startup performance will be impacted.');
}
if (versionNum < 14) throw new Error('NodeJS >=14 required');
console.log('Process', process.pid, 'running as', process.env.NODE_APP_INSTANCE === '0' ? 'master' : 'worker');
if (!global.Hydro) {