mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
d1957958e3
Aligns all requirements vertically for easier reading + adds single quote standard consistently throughout Ghost, except in long strings.
14 lines
461 B
JavaScript
14 lines
461 B
JavaScript
// # Ghost bootloader
|
|
// Orchestrates the loading of Ghost
|
|
|
|
var configLoader = require('./core/config-loader.js'),
|
|
error = require('./core/server/errorHandling');
|
|
|
|
// If no env is set, default to development
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
configLoader.loadConfig().then(function () {
|
|
// The server and its dependencies require a populated config
|
|
require('./core/server');
|
|
}).otherwise(error.logAndThrowError);
|