2013-11-26 07:22:59 +04:00
|
|
|
// # Ghost bootloader
|
|
|
|
// Orchestrates the loading of Ghost
|
|
|
|
// When run from command line.
|
|
|
|
|
2014-08-23 20:19:13 +04:00
|
|
|
var server = require('./server');
|
2013-11-26 07:22:59 +04:00
|
|
|
|
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
|
2014-08-19 20:36:46 +04:00
|
|
|
function makeGhost(options) {
|
2014-02-08 19:41:15 +04:00
|
|
|
options = options || {};
|
2014-02-20 07:22:02 +04:00
|
|
|
|
2014-08-23 20:19:13 +04:00
|
|
|
return server(options);
|
2013-11-26 07:22:59 +04:00
|
|
|
}
|
|
|
|
|
2014-08-19 20:36:46 +04:00
|
|
|
module.exports = makeGhost;
|