[Capistrano] Re: Net::SSH::HostKeyMismatch with capistrano-2.3.0 and net-ssh-2.0.3

2008-06-29 Thread giorgio
Hi Jamis, Thanks for the reply. Knowing where the equivalent in windows of ~.ssh/known_hosts is the core of the problem. When that snippet of code does e.remember_host! where the hell is it remembering it to? Thats the question that I have not been able to figure out the answer to. Putty stor

[Capistrano] Re: can I tell Net::SSH to use the User value in .ssh/config ?

2008-06-29 Thread Stephen Bannasch
At 11:28 AM -0400 6/29/08, Stephen Bannasch wrote: >I'm using capistrano 2.4.3 > >I'd like to modify deploy.rb to have Net::SSH use the User value in >.ssh/config if it exists so I don't need to specifically add my >username to deploy.rb. > >My username on my local machine is 'stephen' however my

[Capistrano] Re: Cannot deploy

2008-06-29 Thread Jamis Buck
Maybe try upgrading your rubygems version? It is currently at 1.2.0, so 0.9.4 is (comparatively) pretty old. - Jamis On Jun 29, 2008, at 1:43 PM, rejeep wrote: > >> It sounds like you've got a broken capistrano install. What version >> of >> rubygems are you using? > $ gem -v > 0.9.4 > (fro

[Capistrano] Re: Error while deploying

2008-06-29 Thread Anil Wadghule
Thanks Mark. On Mon, Jun 30, 2008 at 1:40 AM, Mark Imbriaco <[EMAIL PROTECTED]> wrote: > > Anil, > > Your server has an older version of Git installed that does not honor > the -q flag. You should be able to set scm_verbose to false to work > around this if you don't want to upgrade Git: > > set

[Capistrano] Re: Error while deploying

2008-06-29 Thread Mark Imbriaco
Anil, Your server has an older version of Git installed that does not honor the -q flag. You should be able to set scm_verbose to false to work around this if you don't want to upgrade Git: set :scm_verbose, false -Mark On Sun, Jun 29, 2008 at 3:38 PM, Anil Wadghule <[EMAIL PROTECTED]> wrote:

[Capistrano] Re: Cannot deploy

2008-06-29 Thread rejeep
> It sounds like you've got a broken capistrano install. What version of > rubygems are you using? $ gem -v 0.9.4 (from Ubuntu package manager, apt-get) > Maybe you could try uninstalling capistrano Have done. And have also tried many different versions including the git version (git clone git://

[Capistrano] Re: Error while deploying

2008-06-29 Thread Anil Wadghule
Hi, When I commented line #set :deploy_via, :remote_cache I was able to do cap deploy successfully, But but it said "Initialized empty Git repository in /home/anil/public_html/ planetrails.digitalcodes.org/releases/20080629193725/.git/" I think its wrong to happen. -- Anil On Mon, Jun 30, 20

[Capistrano] Re: Error while deploying

2008-06-29 Thread Anil Wadghule
Hi, I tried to manually run the commands which were failing anilwadghule ~/public_html/planetrails.digitalcodes.org/shared/cached-copy: git fetch -q origin && *git reset -q --hard * bdfe1e7c1ac919875e727be63ebd177f3e27d01a Usage: /usr/bin/git-reset [--mixed | --soft | --hard] [] [ [--] ...] wit

[Capistrano] Re: Error while deploying

2008-06-29 Thread Anil Wadghule
It was working fine, with earlier version of capistrano.. As per my knowledge both git rest and git-rest are both same and available commands in git. On Mon, Jun 30, 2008 at 12:00 AM, Anthony Ettinger <[EMAIL PROTECTED]> wrote: > > it appears that "git reset" needs to be "git-reset" > > > > On

[Capistrano] Re: what shell/PATH is used by cap when it logs into server? (I've got a can't find svn in PATH issue)

2008-06-29 Thread Anthony Ettinger
Try adding the path to .bashrc. On Sun, Jun 29, 2008 at 2:47 AM, greghauptmann <[EMAIL PROTECTED]> wrote: > > Hi, > > What shell/PATH is used by cap when it logs into server? (I've got a > can't find svn in PATH issue). I've updated .bash_profile for > example and this doesn't help. If I go

[Capistrano] Re: Error while deploying

2008-06-29 Thread Anthony Ettinger
it appears that "git reset" needs to be "git-reset" On Sun, Jun 29, 2008 at 8:44 AM, Anil Wadghule <[EMAIL PROTECTED]> wrote: > Hi, > > Deployment was working fine until last week. I have updated to newer version > of capistrano(capistrano (2.4.3, 2.1.0)). May be I because of upgrade of > capis

[Capistrano] Error while deploying

2008-06-29 Thread Anil Wadghule
Hi, Deployment was working fine until last week. I have updated to newer version of capistrano(capistrano (2.4.3, 2.1.0)). May be I because of upgrade of capistrano version, getting following error. Could you help me out to resolve this error. anil-wadghules-computer:~/code/rails/planet anilwadg

[Capistrano] can I tell Net::SSH to use the User value in .ssh/config ?

2008-06-29 Thread Stephen Bannasch
I'm using capistrano 2.4.3 I'd like to modify deploy.rb to have Net::SSH use the User value in .ssh/config if it exists so I don't need to specifically add my username to deploy.rb. My username on my local machine is 'stephen' however my username on most of the servers I deploy to is 'sbannas

[Capistrano] Re: adding version to rails app itself?

2008-06-29 Thread Shawn Balestracci
You could put this in your environment.rb SVN_VERSION= `svn info .`.grep(/Revision/)[0].split(" ")[1] I think that Capistrano also drops a REVISION file in your application root when you deploy.So you could use this instead: SVN_VERSION= File.read("REVISION").chomp if File.exists?("REVISION")

[Capistrano] Re: Cannot deploy

2008-06-29 Thread Jamis Buck
It sounds like you've got a broken capistrano install. What version of rubygems are you using? Maybe you could try uninstalling capistrano (gem uninstall capistrano) and reinstalling. - Jamis On Jun 29, 2008, at 6:00 AM, rejeep wrote: > > Hi! > > I just installed Capistano (version 2.4.3) v

[Capistrano] Re: Net::SSH::HostKeyMismatch with capistrano-2.3.0 and net-ssh-2.0.3

2008-06-29 Thread Jamis Buck
The old key was being put in the ~/.ssh/known_hosts directory, where "~" is the path to your home directory. Where that directory is on Windows, I wouldn't know, but if you can find it, then you should be able to just open the known_hosts file, delete the line for the server in question, a

[Capistrano] Re: adding version to rails app itself?

2008-06-29 Thread Jamis Buck
Subversion and CVS share a feature called "keyword substitution": http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html Maybe you could make that work for this somehow? - Jamis On Jun 29, 2008, at 2:02 AM, Anthony Ettinger wrote: > > I want to add the subversion v

[Capistrano] Cannot deploy

2008-06-29 Thread rejeep
Hi! I just installed Capistano (version 2.4.3) via Ruby Gems. But I cant make it work. When I run for example: cap staging deploy I get bash: /var/lib/gems/1.8/gems/capistrano-2.4.3/bin/cap: Permission denied bash: /var/lib/gems/1.8/gems/capistrano-2.4.3/bin/cap: Permission denied And correct, t

[Capistrano] Project Management Jobs Offers, Free Training Course Online and Planning Techiques, Online Certificates, Classes...

2008-06-29 Thread project management
Free project management process, plans, systems and training - how to project manage.This extensive Guide provides Training to ICT people involved in projects.Free online business training materials, tools, diagrams at: http://www.freewebs.com/projectsmanagement --~--~-~--~~--

[Capistrano] Re: Net::SSH::HostKeyMismatch with capistrano-2.3.0 and net-ssh-2.0.3

2008-06-29 Thread giorgio
After reading the entire contents of google I stumbled across this snippet of code which I ran and it fixed my problem. So here it is for other people who may hit the same problem: require 'rubygems' require 'net/ssh' include Net domain = 'your_server_domain_as_in_deploy.rb' # insert IP address

[Capistrano] what shell/PATH is used by cap when it logs into server? (I've got a can't find svn in PATH issue)

2008-06-29 Thread greghauptmann
Hi, What shell/PATH is used by cap when it logs into server? (I've got a can't find svn in PATH issue). I've updated .bash_profile for example and this doesn't help. If I go "sh" into an sh shell, then type svn, it finds it ok.Yet from my client side this is what I get: =

[Capistrano] adding version to rails app itself?

2008-06-29 Thread Anthony Ettinger
I want to add the subversion version number (ie: 849) to the title of my application layout view. Is the svn version number possible or accessible from within rails itself? Something like this is what I am trying: title += " -- #{conf.environment} #{code.version}" unless conf.environment