> First thing I did not until just now understand is that I have to
> issue "cap mongrel:start" to run the task I have defined, and it does
> not get automatically executed on "cap deploy:start". I have now been
> able to modify it to the point where I can start mongrel using "cap
> mongrel:start". I just don't understand why I need that, and why it
> does not work with "cap deploy:start".
>From where should Capistrano know that it should execute mongrel:start
instead of the default deploy:start?
What you need to do is to tell Capistrano that it should start your
application with your task:
namespace :deploy do
task :start do
mongrel.start
end
end
So you redefine the deploy:start task.
> One thing that surprised me a
> lot is that with the code above, deploy:start will fail because it
> will be executed in the home directory of my capistrano user. So I had
> to add a cd followed by a semicolon for it to work. I wonder if there
> is a similar problem with deploy:start.
>
All task will be executed in the homedir of the Capistrano user as
this is where SSH places you after a login.
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---