[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

[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] 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: 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

[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,

[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) via

[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) On

[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

[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 capistrano

[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 Sun, Jun

[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] [commit-ish] [ [--]

[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

[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: 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: 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 (from Ubuntu

[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