Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
boazpoolman committed May 8, 2024
2 parents ab82a0d + f8631f9 commit 2a59690
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-plugin-config-sync",
"version": "1.2.3",
"version": "1.2.5",
"description": "Migrate your config data across environments using the CLI or Strapi admin panel.",
"strapi": {
"displayName": "Config Sync",
Expand Down
2 changes: 2 additions & 0 deletions server/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ module.exports = async () => {
if (strapi.config.get('plugin::config-sync.importOnBootstrap')) {
if (strapi.server.app.env === 'development') {
strapi.log.warn(logMessage(`You can't use the 'importOnBootstrap' setting in the development env.`));
} else if (process.env.CONFIG_SYNC_CLI === 'true') {
strapi.log.warn(logMessage(`The 'importOnBootstrap' setting was ignored because Strapi was started from the config-sync CLI itself.`));
} else if (fs.existsSync(strapi.config.get('plugin::config-sync.syncDir'))) {
await strapi.plugin('config-sync').service('main').importAllConfig();
}
Expand Down
2 changes: 2 additions & 0 deletions server/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const packageJSON = require('../package.json');
const program = new Command();

const getStrapiApp = async () => {
process.env.CONFIG_SYNC_CLI = true;

try {
const tsUtils = require('@strapi/typescript-utils'); // eslint-disable-line

Expand Down

0 comments on commit 2a59690

Please sign in to comment.