Sha256: e6dd7000580ebdde78399c897bc6259dc44c27b97df8c10ddec836fc97c5ff7e

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

Capistrano recipes
==================

Deploy
------

Git-based deployment process.

Minimal Capfile for deploy:

    require 'capistrano-lest/deploy'

    server 'server name or ip address', :web, :app, :db, :primary => true
    set :user, 'user for deploy'
    set :deploy_to, '/deploy/to/path'
    set :repository, 'your git repository'

To setup:

    !!!plain
    cap deploy:setup

Then when you push some changes to git repository simply run:

    !!!plain
    cap deploy

If you have migrations instead of previous command run:

    !!!plain
    cap deploy:migrations

To look through changes to be deployed:

    !!!plain
    cap deploy:pending

Multistage
----------

    require 'capistrano-lest/multistage'

    set :default_stage, :development

    define_stage :development do
      ...
    end

    define_stage :production do
      ...
    end

Bundle
------

    require 'capistrano-lest/bundle'

To automatically install missing gems:

    after 'deploy:update_code', 'bundle:install'

Unicorn
-------

    require 'capistrano-lest/unicorn'

Now you can setup to reload unicorn on `deploy:restart`:

    after 'deploy:restart', 'unicorn:reload'

Whenever
--------

    require 'capistrano-lest/whenever'

To automatically update crontab file:

    after 'deploy:restart', 'whenever:update_crontab'

You can also clear crontab file with command:

    !!!plain
    cap whenever:clear_crontab

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-deploy-0.0.1 README.md