Thanks a lot! =)
On Apr 7, 12:28 pm, "Rafael G." <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---