Download the PHP package sourcebroker/deployer-extended-magento without Composer
On this page you can find all versions of the php package sourcebroker/deployer-extended-magento. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sourcebroker/deployer-extended-magento
More information about sourcebroker/deployer-extended-magento
Files in sourcebroker/deployer-extended-magento
Package deployer-extended-magento
Short Description Deployment tool for PHP - additional commands for Magento.
License MIT
Informations about the package deployer-extended-magento
deployer-extended-magento
: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:
- Package which provides some deployer tasks that can be used for any framework or CMS.
- Package which provides some php framework independent deployer tasks to synchronize database.
- Package which provides some php framework independent deployer tasks to synchronize media.
Installation
1) Install package with composer:
composer require sourcebroker/deployer-extended-magento
e! This command will install also deployer/dist package which will create ./vendor/bin/dep binary. You should use
s binary to run deploy. Its advisable that you put `alias dep="php ./vendor/bin/dep"` in your ~/.profile
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.php
5) Example deploy.php file for phar based deployer:
<?php
namespace Deployer;
require_once(__DIR__ . '/vendor/sourcebroker/deployer-loader/autoload.php');
new \SourceBroker\DeployerExtendedMagento\Loader();
set('repository', 'git@my-git:my-project.git');
server('live', '111.111.111.111')
->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
All versions of deployer-extended-magento with dependencies
sourcebroker/deployer-extended Version ^7.0.0
sourcebroker/deployer-extended-media Version ^3.0.0
sourcebroker/deployer-extended-database Version ^6.1.0
sourcebroker/deployer-loader Version ^1.0.0