Skip to content

Standardizes deployment by making it a part of your development workflow

License

Notifications You must be signed in to change notification settings

Veve2/RCHCapistranoBundle

 
 

Repository files navigation

RCH/CapistranoBundle

Build Status SensioLabsInsight

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.

Requirements

  • Symfony/Console >= 2.5
  • Symfony/Filesystem >= 2.5
  • Symfony/Config >= 2.5
  • Symfony/Yaml >= 2.5
  • Symfony/Dependency-Injection >= 2.5
  • Ruby >= 2.0

Installation

Step 1: Download the Bundle

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.

Step 2: Enable the Bundle

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(),
        );

        // ...
    }

    // ...
}

Step 3: Install Capistrano

Build installation files for capistrano

$ app/console rch:deploy:install

Install dependencies

$ bundle install

Usage

Setup deployment configuration in interactive mode

$ app/console rch:deploy:setup

Create 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]

Advanced usage

Credits

Robin Chalas
robin.chalas@gmail.com

License

License

About

Standardizes deployment by making it a part of your development workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.5%
  • Makefile 0.5%