On Wed, Sep 29, 2010 at 1:45 PM, dme69 <[email protected]> wrote:
> Well,
> If someone has an idea or had already done that, just let me know.

Here is an example Capistrano recipe I use on one of my sites:

> cat config/deploy.rb

require 'bundler/capistrano'

set :application, 'destiney'
set :scm, :git
set :repository, "[email protected]:gdonald/#{ application }.git"

set :deploy_to, "/rails/cap_#{ application }"
set :user, 'destiney'

role :web, 'destiney.com'
role :app, 'destiney.com'
role :db,  'destiney.com', :primary => true

ssh_options[:keys] = %w(/home/destiney/.ssh/id_dsa)
ssh_options[:paranoid] = false
ssh_options[:port] = 22

namespace :deploy do
  task :restart, :roles => :app do
    run "cd #{ release_path } && RAILS_ENV=production rake db:migrate"
    run "touch #{ release_path }/tmp/restart.txt"
  end
end



-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to