mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
ab2eb18b86
issue #1521 - Reverting some of the refactor towards including Ghost as a module as it prevented Ghost from loading when no config was available.
13 lines
407 B
JavaScript
13 lines
407 B
JavaScript
// # Ghost bootloader
|
|
// Orchestrates the loading of Ghost
|
|
// When run from command line.
|
|
|
|
var configLoader = require('./core/config-loader.js'),
|
|
errors = require('./core/server/errorHandling');
|
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
configLoader.loadConfig().then(function () {
|
|
var ghost = require('./core/server');
|
|
ghost();
|
|
}).otherwise(errors.logAndThrowError); |