Make deployment a part of your development environment by :
- Setup a fast and automated deployment workflow
- Create stagings in config format (YAML, PHP, XML)
- Control execution order by namespaces
- Add custom tasks and environment variables.
- Symfony ~2.4
- Ruby ~2.0
- Capistrano ~3.0
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require rch/capistrano-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
// app/AppKernel.php
$bundles = array(
// ...
new RCH\CapistranoBundle\RCHCapistranoBundle(),
);
Build installation files for capistrano
$ app/console rch:deploy:install
Install dependencies
$ bundle install
Setup deployment configuration in interactive mode
$ app/console rch:deploy:setup
Create YAML stagings
domain: 'ssh_host'
user: 'ssh_user'
keys: '/home/ssh_user/.ssh/id_rsa'
forward_agent: 'false'
auth_methods: 'publickey password'
deploy_to: '/path/to/deploy'
Start deployment
$ app/console rch:deploy:run --staging-name=[STAGING-NAME]