mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-11 08:43:59 +03:00
481e2425af
- This commit removes the old boot process and any files that are no longer needed as a result - Remove the duplicate event for triggering inactive themes to load - Tidied up a few other bits
21 lines
517 B
JavaScript
21 lines
517 B
JavaScript
/**
|
|
* Internal CLI Placeholder
|
|
*
|
|
* If we want to add alternative commands, flags, or modify environment vars, it should all go here.
|
|
* Important: This file should not contain any requires, unless we decide to add pretty-cli/commander type tools
|
|
*
|
|
**/
|
|
|
|
// Don't allow NODE_ENV to be null
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
const argv = process.argv;
|
|
const mode = argv[2];
|
|
|
|
// Switch between boot modes
|
|
switch (mode) {
|
|
default:
|
|
// New boot sequence
|
|
require('./core/boot')();
|
|
}
|