mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
16 lines
255 B
JavaScript
16 lines
255 B
JavaScript
|
const argv = process.argv;
|
||
|
|
||
|
const mode = argv[2] || 'new';
|
||
|
|
||
|
// Switch between boot modes
|
||
|
switch (mode) {
|
||
|
case 'old':
|
||
|
case '3':
|
||
|
// Old boot sequence
|
||
|
require('./startup');
|
||
|
break;
|
||
|
default:
|
||
|
// New boot sequence
|
||
|
require('./core/boot')();
|
||
|
}
|