mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
1438278ce4
closes #3789 - Create a GhostServer class to manage state - index.js now calls start on the exported server - Alter tests to expect a GhostServer instance
13 lines
302 B
JavaScript
13 lines
302 B
JavaScript
// # Ghost bootloader
|
|
// Orchestrates the loading of Ghost
|
|
// When run from command line.
|
|
|
|
var ghost = require('./core'),
|
|
errors = require('./core/server/errors');
|
|
|
|
ghost().then(function (app) {
|
|
app.start();
|
|
}).catch(function (err) {
|
|
errors.logErrorAndExit(err, err.context, err.help);
|
|
});
|