I am wanting to add a task to a rails application, that deals with
updating the db on another "build". Basically, I wanted to create a
task for updating the db of a cruise-controled'd version of this app.
It's annoying to log in to the server and do it manually, so I figured
cap can do the task for me.

What I'm having trouble doing is having it log in using different
credentials or something. I also am having trouble using a rakefile?

 No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)

Is my error.

What I'm doing so far is this =>

task :migrate_cc, :hosts => "cruisecontrolapp.myhost.com" do
  transaction do
    change_directory
    update_db
  end
end

task :change_directory do
  run "cd /path/to/the/cruise/control/work"
end

task :update_db do
  run "rake db:migrate"
end


The problem when I run migrate_cc is the rake thing, and also the fact
that it tries to do this on my app's host (app.myhost.com) and also
cruisecontrolapp.myhost.com.

If I'm doing this wrong, please let me know.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to