Download the PHP package alwex/phpdeploy without Composer
On this page you can find all versions of the php package alwex/phpdeploy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alwex/phpdeploy
More information about alwex/phpdeploy
Files in alwex/phpdeploy
Package phpdeploy
Short Description full php deployment tool to automate code deployment on multiple hosts/env
License
Informations about the package phpdeploy
php-deploy
[]()
php-deploy is a full php deployment tool designed to allow very common OR very specific tasks. It's main philosophy is to chain commands as described in a simple configuration file, commands are easily extensible and highly customizable.
Installation using composer
If you use composer you can easily use it on your project. The main binary file will be available on your binary path
bin/pdeploy
and ready to use.
composer require alwex/phpdeploy
Initiating the project
To use php-deploy you have to initialize your project. Some directory and basic configuration files will be created under the
.php-deploy
directory located in the root of your project.
bin/pdeploy config:init myproject
- .php-deploy/config.ini -> the main configuration file which describe the global project configuration
- .php-deploy/environments -> environment configuration files goes here
- .php-deploy/Command -> you put your custom commands here
You may want to modify the config.ini file
Adding some environments
In order to add environments simply type
bin/pdeploy config:addenv production
Environment file example:
Executing a task
Once you have defined the tasks on the environment ini files, you can simply run them with
bin/pdeploy task:run --release=0.0.1 --env=production mytask
Creating custom commands
To add custom commands, simply add it as php classes on the folder .php-deploy/Command
, you can duplicate the ExampleCommand.php
to start.
Just add this custom command to a task like for example
afterTask[] = ExampleCommand
ExampleCommand content:
All versions of phpdeploy with dependencies
symfony/config Version ~2.6
symfony/process Version ~2.6
symfony/yaml Version ~2.6