Capistrano Misc Recipes
This gem provides several capistrano tasks to help to access rails application environment and log files.
Installation
Add this line to your application's Gemfile:
gem 'capistrano_misc_recipies'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano_misc_recipies
Usage
Add to your Capfile:
require 'capistrano_misc_recipies/console'
To open rails db console on first application server:
$ cap console:db
To open rails console of first application server:
$ cap console:rails
To open ssh session on first application server in project current directory:
$ cap console:shell
To open tail --follow with application log file from server:
$ cap console:tail_log
To get 1000 string from application log file from server:
$ cap console:tail_log1000
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request