2017 © Pedro PelĂĄez
 

library deployer-magento

Deployer recipe for Magento project

image

webgriffe/deployer-magento

Deployer recipe for Magento project

  • Wednesday, June 13, 2018
  • by mmenozzi
  • Repository
  • 1 Watchers
  • 9 Stars
  • 3,829 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 13 Versions
  • 19 % Grown

The README.md

Magento 1.x Deployer Recipe

Deployer recipe for Magento project. It requires Deployer greater or equal to version 5.0., (*1)

Install

Install it using Composer:, (*2)

$ composer require --dev webgriffe/deployer-magento

Usage

Require the recipe in your deploy.php:, (*3)


namespace Deployer; require __DIR__ . '/vendor/webgriffe/deployer-magento/magento.php'; // Usual Deployer configuration here // Set magento root directory inside release path (leave blank if Magento is in the root of the release path) set('magento_root', 'magento'); // Set other Magento's specific config (see below)

Caution

Please, refer to the magento.php file to check the provided shared directories and files. Make sure that these don't conflict with your project. Even when you upgrade webgriffe/deployer-magento please check the shared stuff. We do not treat a different shared configuration as a BC break., (*4)

Configuration

This recipe provides the following Deployer parameters that you can set in your local deploy.php file:, (*5)

  • media_pull_exclude_dirs, default value ['css', 'css_secure', 'js']: allows to set a list of subdirectories of the media folder that will be excluded from the magento:media-pull task.
  • setup-run-timeout, default value 300: allows to set the timeout for the magento:setup-run task which in some cases takes more time.
  • db_pull_strip_tables, default value ['@stripped']: allows to set an array of table names or groups which data will be stripped from the database dump generated with the magento:db-pull task. Table names or groups syntax follow the same rules of the --strip option of the n98-magerun.phar db:dump, see the magerun documentation for more information.
  • magerun_remote, default value n98-magerun.phar: allows to set the path of the magerun bin on the remote stage.
  • magerun_local, default value getenv('DEPLOYER_MAGERUN_LOCAL') ?: 'n98-magerun.phar': allows to set the path of the local magerun bin. As you can see the default value is taken from the DEPLOYER_MAGERUN_LOCAL environment variable if it's set, otherwise n98-magerun.phar will be used.

Magento useful tasks

This recipe provides Magento useful tasks:, (*6)

  • magento:db-dump: creates a gzipped database dump on the remote stage in the deploy user's home directory
  • magento:db-pull: pulls database from the remote stage to local environment
  • magento:media-pull: pulls Magento media from the remote stage to local environment
  • magento:set-copy-deploy-strategy: sets the "copy" deploy strategy for Magento Composer Installer into the composer.json file.

License

This library is under the MIT license. See the complete license in the LICENSE file., (*7)

Credits

Developed by WebgriffeÂź. Please, report to us any bug or suggestion by GitHub issues., (*8)

The Versions

13/06 2018

dev-master

9999999-dev

Deployer recipe for Magento project

  Sources   Download

MIT

13/06 2018

2.4.0

2.4.0.0

Deployer recipe for Magento project

  Sources   Download

MIT

12/06 2018

2.3.0

2.3.0.0

Deployer recipe for Magento project

  Sources   Download

MIT

01/06 2018

2.2.2

2.2.2.0

Deployer recipe for Magento project

  Sources   Download

MIT

01/06 2018

2.2.1

2.2.1.0

Deployer recipe for Magento project

  Sources   Download

MIT

01/06 2018

2.2.0

2.2.0.0

Deployer recipe for Magento project

  Sources   Download

MIT

19/04 2018

2.1.3

2.1.3.0

Deployer recipe for Magento project

  Sources   Download

MIT

13/04 2018

2.1.2

2.1.2.0

Deployer recipe for Magento project

  Sources   Download

MIT

27/03 2018

2.1.1

2.1.1.0

Deployer recipe for Magento project

  Sources   Download

MIT

01/03 2018

2.1.0

2.1.0.0

Deployer recipe for Magento project

  Sources   Download

MIT

20/12 2017

2.0.1

2.0.1.0

Deployer recipe for Magento project

  Sources   Download

MIT

19/12 2017

2.0.0

2.0.0.0

Deployer recipe for Magento project

  Sources   Download

MIT

30/11 2017

1.0.0

1.0.0.0

Deployer recipe for Magento project

  Sources   Download

MIT