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/Console >= 2.5
- Symfony/Filesystem >= 2.5
- Symfony/Config >= 2.5
- Symfony/Yaml >= 2.5
- Symfony/Dependency-Injection >= 2.5
- Ruby >= 2.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-bundleThis 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:
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new RCH\CapistranoBundle\RCHCapistranoBundle(),
);
// ...
}
// ...
}Build installation files for capistrano
$ app/console rch:deploy:installInstall dependencies
$ bundle installSetup deployment configuration in interactive mode
$ app/console rch:deploy:setupCreate YAML staging files
# app/config/rch/staging/prod.yml
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]
