Skip to content
Deploy CakePHP applications using Capistrano
Branch: 3.0
Clone or download
Latest commit 628a3b1 Feb 26, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Allows to customize the working directory, which is not necessarily d… Feb 25, 2016
.gitignore initial commit Dec 1, 2014
.semver Bump version to v3.0.2 Dec 22, 2014
Gemfile initial commit Dec 1, 2014
LICENSE initial commit Dec 1, 2014
README.md Add stillmaintained image Dec 9, 2014
Rakefile initial commit Dec 1, 2014
VERSION Bump version to v3.0.2 Dec 22, 2014
capcake.gemspec Bump version to v3.0.2 Dec 22, 2014

README.md

Capistrano::cakephp

Project Status

Deploy CakePHP applications with Capistrano v3.*

IMPORTANT: Tested with CakePHP 3 thus far, but should work for CakePHP 2 that uses composer.

Installation

Add this line to your application's Gemfile:

gem 'capistrano', '~> 3.0.0'
gem 'capcake', '~> 3.0.0'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capcake

At this point, you can install capistrano:

$ cap install

This will create the required files in your ROOT/config directory

At any time, for help:

$ cap -T

Suggestions

Add .capistrano to your .gitignore:

echo .capistrano/* >> .gitignore

Usage

Require the module in your Capfile:

require 'capistrano/cakephp'

Some extras:

require 'capistrano/cakephp/assets'
require 'capistrano/cakephp/migrations'

Configuration

The gem makes the following configuration variables available (shown with defaults)

set :cakephp_roles, :all
set :cakephp_flags, ''
set :cakephp_user, 'www-data'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
You can’t perform that action at this time.