[capistrano] capistrano still asks for the 1st passw ord even though I’ve set up an ssh key???

2010-02-22 Thread greghauptmann
Hi, Background: I've setup an ssh key to avoid having to use passwords with capistrano per http://www.picky-ricky.com/2009/01/ssh-keys-with-capistrano.html. A basic ssh to my server does work fine without asking for passwords. I'm using "dreamhost.com" for hosting. Issue - When I run 'cap deploy

[capistrano] Re: Problem with :previous_release in a string

2010-02-22 Thread Joshua J. Kugler
On Monday 22 February 2010, Joshua J. Kugler elucidated thus: > The problem is, :previous_release is defined thus: > > { releases.length > 1 ? File.join(releases_path, releases[-2]) : nil > } Actually, in 2.0.0, it's defined: { File.join(releases_path, releases[-2]) } Which doesn't help much.

[capistrano] Problem with :previous_release in a string

2010-02-22 Thread Joshua J. Kugler
So, I'm trying to use #{previous_release} in a run block: run " . . if [[ -f #{previous_release}/$f && ! -h #{previous_release}/$f && ! #{previous_release}/$f -ef #{shared_path}/$f ]]; then dir=$(dirname $f); mkdir -p #{shared_path}/$dir; cp -p #{pr

[capistrano] Re: Problem running shell script with a HERE doc

2010-02-22 Thread Joshua J. Kugler
On Sunday 14 February 2010, Lee Hambley elucidated thus: > Joshua, > > That is a strange behavior - I do typically find that the `run` > formatting for long complex shell scripts sucks pretty hard, and it's > often better- in this case to do something like this with rake, and > defer to the rake ta

[capistrano] Re: Remote shell * (star) expansion problem

2010-02-22 Thread Joshua J. Kugler
On Monday 22 February 2010, Marc elucidated thus: > On the deploy:setup status, I'm trying to link everything on the > remote repositories to the correct place in the servers (I'll have to > setup rather big group of servers) > My problem is that I want to link all wars on one repo dir to the > des

Re: [capistrano] adding users to 50 hosts

2010-02-22 Thread Lee Hambley
You can write something like: task :load_hosts do # load your file here, itterate over it calling role() when you are done with the list end Then $ cap load_hosts uname That's far from ideal, but it should get you started - you can of course put any arbitrary ruby code that you like into the

[capistrano] adding users to 50 hosts

2010-02-22 Thread asif
Hi all I am running the following version of ruby and capistrano on my ubuntu 9.04 ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] Capistrano v2.5.9 I am trying to exapand the following capfile set :gateway, "gw.example.net" role :myhosts, "host1.example.net", "host2.example.net", "host3.e

Re: [capistrano] capistrano/net-ssh errors on cap deploy:setup

2010-02-22 Thread E.J. Hassick
Thanks guys. And yes this was the issue. I actually resolved the problem about 10 minutes after posting this. Thanks again. On Mon, Feb 22, 2010 at 1:15 PM, Lee Hambley wrote: > What Rafa said!, Good luck, Also there's no real, real testing against 1.9 > going on, but we've been assured that

Re: [capistrano] capistrano/net-ssh errors on cap deploy:setup

2010-02-22 Thread Lee Hambley
What Rafa said!, Good luck, Also there's no real, real testing against 1.9 going on, but we've been assured that it works by some users; in this instance though it's pretty clear that it's open ssl that is missing. Please though, post back if & when you run into anymore problems. -- Lee Hambley

Re: [capistrano] capistrano/net-ssh errors on cap deploy:setup

2010-02-22 Thread Rafael G.
I guess that you compiled ruby by hand and forgot include openssl support. You need install libssl-dev , then go to ruby_source_code_path/ext/openssl then write the next commands: ruby extconf.rb make make install Regards! joe wrote: Hello everyone, I've been running through this articl

[capistrano] capistrano/net-ssh errors on cap deploy:setup

2010-02-22 Thread joe
Hello everyone, I've been running through this article -- http://www.forwardthinkingdesign.com/blog/manage-and-deploy-drupal-code-securely-git-gitosis-and-capistrano -- and I'm currently stuck on the part that has to do with capistrano. I'm trying to run cap deploy:setup and and receiving a list

Re: [capistrano] Remote shell * (star) expansion problem

2010-02-22 Thread Rafael G.
Marc wrote: On the deploy:setup status, I'm trying to link everything on the remote repositories to the correct place in the servers (I'll have to setup rather big group of servers) My problem is that I want to link all wars on one repo dir to the destination, and I'm doing this. cmd = "ln

[capistrano] Remote shell * (star) expansion problem

2010-02-22 Thread Marc
On the deploy:setup status, I'm trying to link everything on the remote repositories to the correct place in the servers (I'll have to setup rather big group of servers) My problem is that I want to link all wars on one repo dir to the destination, and I'm doing this. cmd = "ln -sf #{deploy_