An example for use Deployer v3 to deployment PHP project.
In this example, i'm will deploy a project using Slim framework follow my slim-skeleton
See http://deployer.org for more information and documentation about Deployer.
- PHP 5.4.0 and up.
That's all!
You can install ssh2 extension to speedup deployment process and enable sockets for parallel deployment.
Clone with git and composer install
$ git clone [email protected]:oanhnn/deployer-example.git <target-directory>
$ cd <target-directory>
$ composer installor using composer
$ composer create-project oanhnn/deployer-example <target-directory>In this example using forward agent feature, to run it, please enable
sshforward agent the first. If using ssh2 extension, please require package"herzult/php-ssh": "~1.0"and add lineset('ssh_type', 'ext-ssh2');todeploy.phpfile before deployment.
Customize stage/dev.php or make a copy and write your own stages.
First deployment:
$ bin/dep deploy:configure <stage>
$ bin/dep deploy <stage>Next deployments:
$ bin/dep deploy <stage>Using options -vvv for debug
$ bin/dep deploy <stage> -vvvAll code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send a pull request.
To ensure a consistent code base, you should make sure the code follows the PSR-1.
If you would like to help take a look at the list of issues.
This project is released under the MIT License.
Copyright © 2015-2016 Oanh Nguyen.
Please see License File for more information.