mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
07ad400ee0
Closes #968
19 lines
423 B
JavaScript
19 lines
423 B
JavaScript
// # Ghost bootloader
|
|
// Orchestrates the loading of Ghost
|
|
// When run from command line.
|
|
|
|
var bootstrap = require('./bootstrap'),
|
|
server = require('./server');
|
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
function makeGhost(options) {
|
|
options = options || {};
|
|
|
|
return bootstrap(options.config).then(function () {
|
|
return server(options.app);
|
|
});
|
|
}
|
|
|
|
module.exports = makeGhost;
|