Skip to content

Commit

Permalink
Release 1.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jellesiderius committed Jan 31, 2024
1 parent 34eb443 commit a44317b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
11 changes: 7 additions & 4 deletions dist/tasks/downloadTask.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tasks/downloadTask.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage-db-sync",
"version": "1.2.11",
"version": "1.2.12",
"description": "Database synchronizer for Magento, based on Magerun",
"author": {
"name": "Jelle Siderius"
Expand Down
11 changes: 7 additions & 4 deletions src/tasks/downloadTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Listr } from 'listr2';
// @ts-ignore
import staticConfigFile from '../../config/static-settings.json'
import configFile from "../../config/settings.json";
import fs from "fs";

class DownloadTask {
private downloadTasks = [];
Expand Down Expand Up @@ -138,11 +139,13 @@ class DownloadTask {

var developmentStripCommand = staticConfigFile.settings.databaseStripDevelopment;

let jsonData = require(config.settings.currentFolder + '/.mage-db-sync-config.json');
let databaseStripDevelopment = jsonData.databaseStripDevelopment;
if (fs.existsSync(config.settings.currentFolder + '/.mage-db-sync-config.json')) {
let jsonData = require(config.settings.currentFolder + '/.mage-db-sync-config.json');
let databaseStripDevelopment = jsonData.databaseStripDevelopment;

if (databaseStripDevelopment) {
developmentStripCommand = `${developmentStripCommand} ${databaseStripDevelopment}`;
if (databaseStripDevelopment) {
developmentStripCommand = `${developmentStripCommand} ${databaseStripDevelopment}`;
}
}

// Dump database and move database to root of server
Expand Down

0 comments on commit a44317b

Please sign in to comment.