2015-05-28 10:16:09 -05:00
|
|
|
// ## Server Loader
|
|
|
|
// Passes options through the boot process to get a server instance back
|
2014-08-23 11:19:13 -05:00
|
|
|
var server = require('./server');
|
2013-11-25 22:22:59 -05:00
|
|
|
|
2015-05-28 10:16:09 -05:00
|
|
|
// Set the default environment to be `development`
|
2013-11-25 22:22:59 -05:00
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
|
2014-08-19 11:36:46 -05:00
|
|
|
function makeGhost(options) {
|
2014-02-08 10:41:15 -05:00
|
|
|
options = options || {};
|
2014-02-19 22:22:02 -05:00
|
|
|
|
2014-08-23 11:19:13 -05:00
|
|
|
return server(options);
|
2013-11-25 22:22:59 -05:00
|
|
|
}
|
|
|
|
|
2014-08-19 11:36:46 -05:00
|
|
|
module.exports = makeGhost;
|