Third Replicator,
Shouldn't this task be accomplished trough something like Chef,
Sprinkle, ...? Looks a lot more like provisioning than deployment.
There is a Ruby lib that interacts with the CLI, but I am not sure
it is integrated in Capistrano.
--
Aníbal Rojas
Ruby on Rails Web Developer
http://www.google.com/profiles/anibalrojas
On 29 July, 07:03, Third Replicator <[email protected]> wrote:
> Ruby 1.9.1
>
> Anyway I got it to work with the Linux "yes" command.
>
> run 'yes "
> " | sudo passenger-install-apache2-module'
>
> That does it.
>
> Never figured out the way capistrano can interact with prompts.....
> can somebody point me to that?
>
> On Jul 28, 3:46 am, "Rafael G." <[email protected]> wrote:
>
> > What is your ruby version?
>
> > Try to add this line to deploy.rb:
> > set :max_hosts, 1
>
> > If it works then the problem is the ruby version(again).
>
> > Third Replicator wrote:
> > > I'm using this code
> > > fromhttp://pragmatig.wordpress.com/2008/10/10/capistrano-recipe-to-instal...
>
> > > task :install_passenger do
> > > set_variables
> > > run "sudo gem install --no-ri --no-rdoc passenger"
> > > input = ''
> > > run "sudo passenger-install-apache2-module" do |ch,stream,out|
> > > next if out.chomp == input.chomp || out.chomp == ''
> > > print out
> > > ch.send_data(input = $stdin.gets) if out =~ /(Enter|ENTER)/
> > > end
> > > end
>
> > > But it just sort of hangs there.
>
> > >>> cap install_passenger
>
> > > * executing `install_passenger'
> > > * executing `set_variables'
> > > * executing `get_ip'
> > > * executing `get_instance_id'
> > > instance id: i-c38b86aa
> > > ip address: ec2-67-202-0-185.compute-1.amazonaws.com
> > > * executing "sudo passenger-install-apache2-module"
> > > servers: ["ec2-67-202-0-185.compute-1.amazonaws.com"]
> > > [ec2-67-202-0-185.compute-1.amazonaws.com] executing command
>
> > > ....... *Hang to infinite*.......
>
> > --
> > Rafa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---