Skip to content
Mougrim edited this page Apr 5, 2015 · 1 revision

Deployer need Composer for work. If you do not have Composer yet, you may install it by following the instructions here.

There is two way for install deployer.

Install via composer

You can install Deployer with composer:

composer require mougrim/deployer:~0.2

Then to use Deployer you may run the following command:

vendor/bin/mougrim-deployer.php

Install from Source Code

If you want build Deployer from source code, clone the project from GitHub:

cd ~/                                                            # For example, install into ~/php-mougrim-deployer
git clone git@github.com:mougrim/php-mougrim-deployer.git        # Clone php-mougrim-deployer
cd php-mougrim-deployer
composer.phar install                                            # Resolve dependencies
export PATH=$PATH:~/php-mougrim-deployer/bin                     # Add bin directory to PATH
echo 'export PATH=$PATH:~/php-mougrim-deployer/bin' >> ~/.bashrc # Add bin directory to PATH permanently

Then to use Deployer you may run the following command:

mougrim-deployer.php

Clone this wiki locally