Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:meanbee/magedbm
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyshaw committed Nov 3, 2015
2 parents aaeb9d1 + 5c74926 commit 562fd56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ Provides a simpler way for developers to retrieve sanitised Magento database bac

It's design to run on production boxes to create database dumps and upload to Amazon S3 buckets.

It can then be run on local development machines to get latest or specific backup for a project and automatically import it.

It can then be run on local development machines to get latest or specific backup for a project and automatically import it.

## Motivation

Working on Magento client sites typically requires a fresh copy of the production database in order reduce discrepencies later in the development cycle due to differences between environments. This can be difficult to achieve a number of reasons and either way will slow down development process.
Working on Magento client sites typically requires a fresh copy of the production database in order reduce discrepencies later in the development cycle due to differences between environments. This can be difficult to achieve a number of reasons and either way will slow down development process.

## Compatibility

Compatible with PHP 5.3+.
Uses a PHP alternative for creating database backups when exec is disabled.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions src/Meanbee/Magedbm/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
class Application extends \Symfony\Component\Console\Application
{

const APP_NAME = "Magedbm";
const APP_VERSION = "1.0.0";
const APP_NAME = 'Magedbm';
const APP_VERSION = '1.0.0';

protected $autoloader;

Expand Down
7 changes: 6 additions & 1 deletion src/Meanbee/Magedbm/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,17 @@ protected function initialize(InputInterface $input, OutputInterface $output)
$this->validateConfiguration();
}


/**
* @return string
*/
protected function getAppDirPath()
{
return getenv('HOME') . self::APP_DIR_PATH;
}

/**
* @return string
*/
protected function getAppConfigPath()
{
return getenv('HOME') . self::APP_CONFIG_PATH;
Expand Down

0 comments on commit 562fd56

Please sign in to comment.