2015-05-28 18:16:09 +03:00
|
|
|
// ## Server Loader
|
|
|
|
// Passes options through the boot process to get a server instance back
|
2014-08-23 20:19:13 +04:00
|
|
|
var server = require('./server');
|
2013-11-26 07:22:59 +04:00
|
|
|
|
2015-05-28 18:16:09 +03:00
|
|
|
// Set the default environment to be `development`
|
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;
|