Karo is a command line companion for a rails application which makes performing routine commands locally or on the server easier.
Github – https://github.com/rahult/karo Website – http://rahult.github.io/karo/
Example of things it can do, for rest please refer to karo help
1 2 3 4 5 |
|
You can also write your custom commands
1 2 |
|
Few Assumptions
- You have SSH access to your servers
- You have the Capistrano deploy directory structure on your server
[deploy_to]
[deploy_to]/releases
[deploy_to]/releases/20080819001122
[deploy_to]/releases/…
[deploy_to]/shared
[deploy_to]/shared/config/database.yml
[deploy_to]/shared/log
[deploy_to]/shared/pids
[deploy_to]/shared/system
[deploy_to]/current –> [deploy_to]/releases/20100819001122 - You are using MySQL as your database server
- You are using Dragonfly to store your assets
I am working on supporting other databases and assets managers for future releases
Installation
Karo is released as a Ruby Gem. The gem is to be installed within a Ruby on Rails application. To install, simply add the following to your Gemfile:
1
|
|
After updating your bundle, you can use Karo function from the command line
Usage (command line)
1
|
|
Default configuration file (.karo.yml)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|