Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sourcebroker/deployer-extended-magento
Deployer based deployment for Magento with media and database synchronisation.
https://github.com/sourcebroker/deployer-extended-magento
deploy deployer deployer-recipes deployment magento sb-dema
Last synced: 3 months ago
JSON representation
Deployer based deployment for Magento with media and database synchronisation.
- Host: GitHub
- URL: https://github.com/sourcebroker/deployer-extended-magento
- Owner: sourcebroker
- License: mit
- Created: 2017-02-22T21:49:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T23:09:23.000Z (almost 7 years ago)
- Last Synced: 2024-05-13T07:20:21.027Z (9 months ago)
- Topics: deploy, deployer, deployer-recipes, deployment, magento, sb-dema
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
deployer-extended-magento
=========================.. contents:: :local:
What does it do?
----------------This package provides deploy task for deploying Magento with deployer (deployer.org) and additionally a tasks
to synchronize database and media files.Dependencies
------------This package depends on following packages:
- | `sourcebroker/deployer-extended`_
| Package which provides some deployer tasks that can be used for any framework or CMS.- | `sourcebroker/deployer-extended-database`_
| Package which provides some php framework independent deployer tasks to synchronize database.- | `sourcebroker/deployer-extended-media`_
| Package which provides some php framework independent deployer tasks to synchronize media.Installation
------------1) Install package with composer:
::composer require sourcebroker/deployer-extended-magento
Note! This command will install also deployer/dist package which will create ./vendor/bin/dep binary. You should use
this binary to run deploy. Its advisable that you put `alias dep="php ./vendor/bin/dep"` in your ~/.profile
to be able to run deployer with regular "dep" command.2) If you are using deployer as composer package then just put following line in your deploy.php:
::new \SourceBroker\DeployerExtendedMagento\Loader();
3) If you are using deployer as phar then put following lines in your deploy.php:
::require_once(__DIR__ . '/vendor/sourcebroker/deployer-loader/autoload.php');
new \SourceBroker\DeployerExtendedMagento\Loader();4) Remove task "deploy" from your deploy.php. Otherwise you will overwrite deploy task defined in
deployer/deploy/task/deploy.php5) Example deploy.php file for phar based deployer:
::user('www-data')
->stage('live')
->set('public_urls', ['http://www.example.com/'])
->set('deploy_path', '/var/www/example.com.live');server('beta', '111.111.111.111')
->user('www-data')
->stage('beta')
->set('public_urls', ['http://beta.example.com/'])
->set('deploy_path', '/var/www/example.com.beta');server('local', 'localhost')
->stage('local')
->set('public_urls', ['http://example-com.dev/'])
->set('deploy_path', getcwd());Mind the declaration of server('local', 'localhost'); Its needed for database tasks to declare domain replacements,
and path to store database dumps.Changelog
---------See https://github.com/sourcebroker/deployer-extended-magento/blob/master/CHANGELOG.rst
.. _sourcebroker/deployer-extended: https://github.com/sourcebroker/deployer-extended
.. _sourcebroker/deployer-extended-media: https://github.com/sourcebroker/deployer-extended-media
.. _sourcebroker/deployer-extended-database: https://github.com/sourcebroker/deployer-extended-database