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