fix: Bootstrap function
parent
ae329b91a3
commit
010ae19bc4
|
@ -41,9 +41,7 @@ module.exports = async () => {
|
||||||
if (strapi.config.get('plugin.config-sync.importOnBootstrap')) {
|
if (strapi.config.get('plugin.config-sync.importOnBootstrap')) {
|
||||||
if (strapi.server.app.env === 'development') {
|
if (strapi.server.app.env === 'development') {
|
||||||
strapi.log.warn(logMessage(`You can't use the 'importOnBootstrap' setting in the development env.`));
|
strapi.log.warn(logMessage(`You can't use the 'importOnBootstrap' setting in the development env.`));
|
||||||
return;
|
} else if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
|
||||||
}
|
|
||||||
if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
|
|
||||||
await strapi.plugin('config-sync').service('main').importAllConfig();
|
await strapi.plugin('config-sync').service('main').importAllConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue