Skip to content

This Capistrano plugin is designed to clear a cache on your instance with Rails app. capistrano-rails requires Capistrano 3.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE
Notifications You must be signed in to change notification settings

piotr-kedziak/capistrano-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capistrano::Cache

This Capistrano plugin is designed to clear a cache on your instance with Rails app. capistrano-rails requires Capistrano 3.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-cache', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-cache

And add that line to your Capfile:

require 'capistrano/cache'

By default, a cache will be cleared on an :app role so please add it to your Capistrano environment config file for ex:

server '[email protected]',
       user:        'deployer',
       roles:       %w[app db web]

Usage

After installation, you can run a Capistrano task on any of yours environments stages:

cap production cache:clear

Hooks

This gem will, by default add a hook to run a cache:clear task after each deploy. You can change this behaviour by adding this line to your deploy.rb file:

set :clear_cache_after_deploy, true # by default or false

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

License

The gem is available as open source under the terms of the MIT License.

About

This Capistrano plugin is designed to clear a cache on your instance with Rails app. capistrano-rails requires Capistrano 3.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages