mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
583c7970d9
helps with #827, otherwise no issue - This is general code clean-up and unification. - Merges code from bootstrap.js into config module as they were both concerned with managing the config file and as such should be in one location. - Updates all relevant tests.
16 lines
308 B
JavaScript
16 lines
308 B
JavaScript
// # Ghost bootloader
|
|
// Orchestrates the loading of Ghost
|
|
// When run from command line.
|
|
|
|
var server = require('./server');
|
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
function makeGhost(options) {
|
|
options = options || {};
|
|
|
|
return server(options);
|
|
}
|
|
|
|
module.exports = makeGhost;
|