mirror of
https://github.com/strapi/strapi.git
synced 2025-08-18 21:57:46 +00:00
33 lines
505 B
JavaScript
Executable File
33 lines
505 B
JavaScript
Executable File
'use strict';
|
|
|
|
/**
|
|
* Module dependencies
|
|
*/
|
|
|
|
// Public node modules.
|
|
const async = require('async');
|
|
|
|
/**
|
|
* `Strapi.prototype.start()`
|
|
*
|
|
* Loads the application, then starts all attached servers.
|
|
*
|
|
* @api public
|
|
*/
|
|
|
|
module.exports = function start(configOverride, cb) {
|
|
const self = this;
|
|
|
|
// Callback is optional.
|
|
cb = cb || function (err) {
|
|
if (err) {
|
|
return self.log.error(err);
|
|
}
|
|
};
|
|
|
|
async.series([
|
|
cb => self.load(configOverride, cb),
|
|
this.initialize
|
|
]);
|
|
};
|