Cap::Laravel

A collection of tasks for deploying a Laravel app via Capistrano.

Installation

Add this line to your application's Gemfile:

gem 'cap-laravel'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cap-laravel

Usage

Add it to your Capfile:

require 'cap/laravel'

Bask in the glory of Capistrano.

Settings

Migrations

If you are creating an app that doesn't have any migrations, e.g. an API client, you can ignore migrations by setting the following in your deploy.rb file:

set :run_migrations, false

Grunt

By default, the grunt task will be run when compiling CSS, etc. To alter the command that is run set the following:

set :grunt_cmd, "grunt task here"

This could be something like grunt:prod, or whatever you want it to be if it doesn't follow the normal practice.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/cap-laravel/fork )
  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 a new Pull Request