It's the sudo call. Try this instead:

  stream "cd /usr/src/; #{sudo} make world DESTDIR=#{destdir}"

In other words, put sudo in #{sudo}, so that capistrano can substitute
the correct sudo invocation. Otherwise, it won't know how to find the
sudo prompt in the output, and thus won't know how to prompt you for
it.

- Jamis


On Mon, Sep 29, 2008 at 9:02 PM, Leon Yeh <[EMAIL PROTECTED]> wrote:
>
> Hi I have a capistrano that "stream" that in turn running make in the
> remote server.
>
> The code looks like this
> ***********************
>
> desc "Create Jail Host system"
>  task :create_jail_host do
>
>    started_at = connection_info
>    jailname = "chad1"
>    destdir = "/usr/local/jail/" + jailname
>
>    stream "cd /usr/src/; sudo make world DESTDIR=#{destdir}"
> end
>
> **************************
>
> When I run the cap command, it basically hang and when I did ctrl-c
> this is what I see
>
> opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> processable.rb:25:in `select': Interrupt from
>  /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> processable.rb:25:in `process_iteration'
>        from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.0/lib/
> capistrano/command.rb:163:in `process!'
>        from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.0/lib/
> capistrano/command.rb:162:in `loop'
>        from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.0/lib/
> capistrano/command.rb:162:in `process!'
>
>
> Any idea why this create so much problem ?
>
> Thanks in advance
> Leon Yeh
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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