capobvious is a recipes, which i use every day
Add this line to your application's Gemfile:
gem 'capobvious'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capobvious
If project don't have capistrano yet, you can run
capobvious .
Inside of you'r project, it create Capfile and config/deploy.rb (you need to configure it)
Or if you have exsisting project with capistrano and you want to use all recipes - just add to the end of Capfile
require 'capistrano/ext/capobvious'
require 'capobvious/recipes/unicorn'
cap unicorn:start
cap unicorn:stop
cap unicorn:restart
require 'capobvious/recipes/db'
cap db:create # Will create user and production database, taken from database.yml
cap db:seed # rake db:seed
cap db:migrate # rake db:migrate
cap db:pg_import # import remote server postgresql database to your development postgresql database
# IT WILL DELETE YOUR DEV DATABASE
require 'capobvious/recipes/rake'
cap rake TASK='your:custom:task'
require 'capobvious/recipes/import'
cap import:sys # Import shared/system folder from server to you development machine
# (with rsync works much faster)
require 'capobvious/recipes/backup'
cap backup:db # Backup postgresql server database to local project/tmp/backup folder
cap backup:sys # Backup shared/system folder to local project/tmp/backup folder
cap backup:all # Run backup:db backup:sys
require 'capobvious/recipes/bundle'
cap bundle:install # run automatically on deploy
require 'capobvious/recipes/log'
cap log:tail # stream production.log
require 'capobvious/recipes/logrotate'
cap logrotate:init # uses logrotate to clean logs automaticly
- 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