mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed boot crashing when segment config is present (#19625)
refs https://github.com/TryGhost/Ghost/commit/c4912665e5d5af2c25e We removed the segment service but continued to attempt to load it when the segment config was present.
This commit is contained in:
parent
d5077ac1bf
commit
38b29d0566
1 changed files with 1 additions and 9 deletions
|
@ -292,11 +292,8 @@ async function initAppService() {
|
|||
* Services are components that make up part of Ghost and need initializing on boot
|
||||
* These services should all be part of core, frontend services should be loaded with the frontend
|
||||
* We are working towards this being a service loader, with the ability to make certain services optional
|
||||
*
|
||||
* @param {object} options
|
||||
* @param {object} options.config
|
||||
*/
|
||||
async function initServices({config}) {
|
||||
async function initServices() {
|
||||
debug('Begin: initServices');
|
||||
|
||||
debug('Begin: Services');
|
||||
|
@ -381,11 +378,6 @@ async function initServices({config}) {
|
|||
]);
|
||||
debug('End: Services');
|
||||
|
||||
// Initialize analytics events
|
||||
if (config.get('segment:key')) {
|
||||
require('./server/services/segment').init();
|
||||
}
|
||||
|
||||
debug('End: initServices');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue