Lucas escribió:
> The database in my RoR application is shared with a 2nd application,
> and created by the latter, so I need capistrano (cap deploy:cold) to
> assume the database is there and ready to use already, instead of
> trying to run all migrations. Is there a way? Should I create an extra
> task?
>
> thanks
> >
>
>   
You can overwrite cold task in your deploy.rb file:
namespace :deploy do
  desc <<-DESC
    Deploys and starts a `cold' application. This is useful if you have 
not \
    deployed your application before, or if your application is (for some \
    other reason) not currently running. It will deploy the code, run any \
    pending migrations, and then instead of invoking `deploy:restart', 
it will \
    invoke `deploy:start' to fire up the application servers.
  DESC
  task :cold do
    update
   # migrate      # Commented, can be deleted
    start
  end
end

Regards

-- 
Rafael Garcia Ortega


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

begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[EMAIL PROTECTED]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard

Reply via email to