[Capistrano] Re: Changing directory in task

2008-10-09 Thread Lee Hambley
It is worth noting for the sake of completeness - although it's more of a Bash (or any shell) feature. That will execute the following task only if the first one is successful. run cd /path ls -al Wouldnt' run the ls command if it couldn't change directory.. which in this instance makes

[Capistrano] Re: using non-standard port with capistrano and git

2008-10-09 Thread Lee Hambley
://linux.die.net/man/5/ssh_config -- Lee Hambley On Oct 9, 9:01 pm, ohlhaver [EMAIL PROTECTED] wrote: Hi, I am trying to deploy to my production server using a non-standard port, such as 1234 . (Using capistrano, git and github as repo.) Everything worked perfectly when I used port 22. I updated

[Capistrano] Re: Removing Standard Deploy Recipe Tasks

2008-10-17 Thread Lee Hambley
Also on the wiki: - http://wiki.capify.org/index.php?title=Neutralise_Capistrano_Default_Methods -- Lee 2008/10/17 Jamis Buck [EMAIL PROTECTED] Well, either you have the deployment tasks, or you don't. If you need any of them, you'll need to load all of them. There's not currently a

[Capistrano] Re: Extending capistrano

2008-10-24 Thread Lee Hambley
anyway... We deploy to a share, at work our site is ~900 meg all-in (cold, deploy), we use rsync internally, and the copy_exclude variable to exclude large directories from the copy, which we then rsync using regular run() tasks. Hope this Helps, Lee Hambley 2008/10/24 theduz [EMAIL PROTECTED

[Capistrano] Re: capistrano-ext

2008-10-25 Thread Lee Hambley
Hi Bharat, The main thing in capistrano-ext is the capistrano-multistage feature: http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage There are two other things in there, too - but I have no idea what they are, hopefully someone else can fill in the blanks :) \-- Lee 2008/10/25 Bharat

[Capistrano] Re: Capistrano 2.x best practices for namespaces

2008-10-26 Thread Lee Hambley
Hey Bharat, With regard to your question about whether or not namespaces are required.. they aren't ... they do make keeping your code organiesd a lot easier though. The magic tasks that constitute callbacks in 1.4.x are deprecated, and have been replaced by the

[Capistrano] Re: Capistrano 2.x best practices for namespaces

2008-10-26 Thread Lee Hambley
%20Path.pdf . -- Lee 2008/10/26 Bharat [EMAIL PROTECTED] Thanks again, Lee. Is there a way I can generate the nice docs locally on my machine that I see you the link that you have kindly provided on your server? I have Capistrano installed as a gem. Regards, Bharat On 26 Oct, 12:12, Lee

[Capistrano] Re: can't login apparently...

2008-10-26 Thread Lee Hambley
Dave, I would have expected that would do it, can you log into the server via SSH normally.. or are you using the :gateway option? -- Lee 2008/10/26 David Beckwith [EMAIL PROTECTED] Hi, I can't seem to login. I tried deleted the fuseme.com row from ~/.ssh/known_hosts (and then logged in

[Capistrano] Re: Unexplained error on deployment

2008-10-27 Thread Lee Hambley
Chris, I'm with jamis here, you've used :leaguesmart somewhere before it is set... if you are trying to use it early in the recipe you might need to put it in a Proc http://www.ntecs.de/old-hp/s-direktnet/ruby/uguide18.html. set :leaguesmart, 192.168.3.117 # ..or whatever! set :repository,

[Capistrano] Re: Challenge with Roles definition and run on one server with Cap 2.5.0

2008-10-30 Thread Lee Hambley
Ladislav, Just a thought, but where you call after deploy:update_code, :clear_cache inheriting the run level of your deploy_update code task when called in deploy:update code.. when you call it manually, it is fine. but when it's nested, it isn't? -- Lee 2008/10/30 Ladislav Martincik [EMAIL

[Capistrano] Re: Updating the package after checkout, before copy with copy strategy

2008-10-30 Thread Lee Hambley
arguments (search the list, I wrote a comprehensive reply to a question about those just a couple of days ago). -- erm, lost my train of thought... hope I helped - a little - come back if you need more clarification? Lee Hambley 2008/10/30 Bill Kirtley [EMAIL PROTECTED] Hello- We've got a topology

[Capistrano] Re: overriding variables in stage.rb

2008-11-02 Thread Lee Hambley
Anthony, This is an easy one, the problem is - not scope as you might think, but rather the order in which the files are loaded. You can get this working, by using a Proc (more infohttp://www.ntecs.de/old-hp/s-direktnet/ruby/uguide18.html) which will ensure that the block you assign isn't

[Capistrano] Re: Different deploy paths

2008-12-01 Thread Lee Hambley
Fabien, I will just point you here, at the Parallel() helper, as you should be able to get this to do what you need - http://www.capify.org/2008/8/29/capistrano-2-5-0 - I'll spare you the lecture about having a working copy checked out being a bit of a risk, for rollbacks, and the temptation to

[Capistrano] Re: Cap Git and passkey strange behaviour

2008-12-03 Thread Lee Hambley
Jérémy, I believe it does it so it knows (with subversion at least) which revision it needs to explicitly tell the server to checkout. it writes this to some files, too --- Jamis might correct me, but I suspect that's the case. -- Lee 2008/11/18 Jérémy Lecour [EMAIL PROTECTED] Hi guys,

[Capistrano] Re: Trouble authenticating with different svn and application servers

2008-12-03 Thread Lee Hambley
Sanders, Check your apache log - if you are using passenger mod_rails - there will be something in there, or your app logs about why it coulnd't start - Lee 2008/12/3 BarefootSanders [EMAIL PROTECTED] Ahh ok thanks. That seemed to fix it. Now i have another problem if you'd be so

[Capistrano] Re: [ANN] Capistrano 2.5.3

2008-12-07 Thread Lee Hambley
Hi All, Thanks to Jamis for another great release, and to those on IRC who continue to help, and support Capistrano with tips, documentation and patches... viva la Capistrano! -- Lee (aka Kobani) 2008/12/7 Jamis Buck [EMAIL PROTECTED] Just a quick note to announce Capistrano 2.5.3. You can

[Capistrano] Re: Accessing server variable in parallel helper

2008-12-10 Thread Lee Hambley
I approached this slightly differently, I have local configs, as part of my application (it isn't rails) - they reside in scm alongside my actual files, and at runtime, I run a command like this: - http://pastie.org/335918 The key part is the `hostname` part, which substitutes in the name of

[Capistrano] Re: Deploy Via Remote Cache With Git Gives [err] remote: Counting objects:

2008-12-12 Thread Lee Hambley
Joran, The ::out and ::err are std versus stdout so that is your git client on the server directing output one way or another I'm not sure if this is standard, on your own machine you could try directing GIT's output ... you can read all about how here. -

[Capistrano] Re: cap deploy:update failing with cvs.rb:74:in `query_revision': undefined method `+' for nil:NilClass

2008-12-12 Thread Lee Hambley
Leszek, Jamis... It isn't that there's nothing to roll back to... is it ? (seen that/similar error when the ls that gets the old revision number fails...?) - Lee 2008/12/12 Lech Migdal lech.mig...@gmail.com Jamis, Thanks for the encouragement :-) I've found the piece of code causing the

[Capistrano] Re: Deploy Via Remote Cache With Git Gives [err] remote: Counting objects:

2008-12-13 Thread Lee Hambley
i vote for better logging, One of my tasks at work is to roll our logging up in the logging (logger?) gem, or log4r... I'll accept hints there though, since I'm on a short week at the office next week ... but I don't even mind putting the time in to patch capistrano's log framework if we can come

[Capistrano] Re: Can Capistrano warn me if I have pending migrations?

2008-12-30 Thread Lee Hambley
Hi, Providing your Rails app is standard(ish) - your migrations should run by default as far as I am aware. can you give us any more information with which to help diagnose this ? - Lee 2008/12/30 Fjan jmfa...@gmail.com (I have a the feeling this should be obvious but a quick Google

[Capistrano] Re: method called on nil when doing cap -n deploy:migrate

2009-01-08 Thread Lee Hambley
Nemot, Did you fix this? - Lee 2009/1/7 nemot gne...@gmail.com Yeah... I got a same problem... Tell you when i will decide it. On Nov 27 2008, 6:05 am, Trejkaz trej...@gmail.com wrote: I got this when doing a dry run for deploy:migrate. The underlying problem was either it being a

[Capistrano] Re: is if cpu x part of capistrano

2009-01-08 Thread Lee Hambley
Gerhardus, Monit is here - http://mmonit.com/monit/ -- For a Pure-ruby implementation and self professes like monit, only awesome app - see GOD http://god.rubyforge.com/ - Lee 2009/1/8 Gerhardus Geldenhuis gerhardus.geldenh...@gmail.com Thanks, do you have a url that you could point me to? I

[Capistrano] Re: How does Capistrano handel shell escaping / quoting?

2009-01-09 Thread Lee Hambley
dodeantn, This is Ruby code, and it's double Vs. single quoted strings - you can read more here: - http://blogs.sun.com/coolstuff/entry/why_i_like_ruby_string - Lee 2009/1/9 dodeantn dodea...@hotmail.com OK. Thanks that's my answer. So there's no automatic quoting in Capistrano? On 9

[Capistrano] Re: How does Capistrano handel shell escaping / quoting?

2009-01-12 Thread Lee Hambley
, I'm not sure how many of these problems it could solve? Or, by not really concentrating on this thread, am I about to make a fool of myself :) - Wiki Article: http://wiki.capify.org/index.php?title=Handling_The_Unexpected Lee Hambley 2009/1/12 Jamis Buck ja...@37signals.com I totally agree

[Capistrano] Re: How does Capistrano handel shell escaping / quoting?

2009-01-12 Thread Lee Hambley
Hi Ara, Thanks - I may rework these examples, just to be clear - the bash scripts, and therfore the FileUtils commands are to run on the remote server (I'm not familiar with FileUtils?) - Lee 2009/1/12 ara.t.howard ara.t.how...@gmail.com On Jan 12, 2009, at 10:33 AM, Lee Hambley wrote: Ara

[Capistrano] Re: How does Capistrano handel shell escaping / quoting?

2009-01-12 Thread Lee Hambley
see an alternative, realistically to my problem? (or, its not a problem, because my deploy script is really, really reliable - but when something does go wrong, we get bad, bad useless error messages!) - Lee H 2009/1/12 Lee Hambley lee.hamb...@gmail.com Hi Ara, Thanks - I may rework

[Capistrano] Re: Starting a custom service with #run

2009-01-12 Thread Lee Hambley
Jason, How are you trying to start the services? - Lee 2009/1/12 Jason Roelofs jameskil...@gmail.com So I'm stuck. I'm using Capistrano to make a push-button script for starting up a new EC2 instance along with software installs and starting up necessary services. The first two steps work

[Capistrano] Re: Cap System Administration Question

2009-01-12 Thread Lee Hambley
the user to execute the cap commands, I use sudo su - otheruser, then I execute cap some command. Is this the problem? Can you not run cap as sudo su? On Jan 12, 4:38 pm, Lee Hambley lee.hamb...@gmail.com wrote: Correct Pete, 2009/1/12 pete peterbattag...@gmail.com Also, just

[Capistrano] Re: How to set executable bit on files deployed with Git from Windows?

2009-01-13 Thread Lee Hambley
insertions(+), 0 deletions(-) mode change 100644 = 100755 a d...@serenity:~/foo$ I'm not sure how to fix it on Windows, but the repository definitely stores permissions. On Mon, Jan 12, 2009 at 5:33 PM, Lee Hambley lee.hamb...@gmail.comwrote: Sven, I'm pretty sure thats not possible with GIT, I

[Capistrano] Re: Capistrano documentation, tutorials

2009-01-13 Thread Lee Hambley
Karel, Good point, we talk to a lot of people on IRC, and there's a growing selection of documentation in our wiki (not really public yet, but it is) - and there are a handful of tutorials out there what did you have in mind, Tyler B and I are trying to manage the Documentation project... but

[Capistrano] Re: Starting a custom service with #run

2009-01-13 Thread Lee Hambley
On Jan 12, 5:36 pm, Lee Hambley lee.hamb...@gmail.com wrote: Jason, How are you trying to start the services? - Lee 2009/1/12 Jason Roelofs jameskil...@gmail.com So I'm stuck. I'm using Capistrano to make a push-button script for starting up a new EC2 instance along

[Capistrano] Re: Capistrano::ConnectionError

2009-01-15 Thread Lee Hambley
This might be ssh v1 vs. v2 issues, are you definately using SSH v2, with v2 keys? (i think it is a difference between DSA, and RSA keys)- Lee 2009/1/15 Xazoola col...@gmail.com Hi, I am getting a ConnectionError on Solaris. Works find on Linux. anyone know what causes this error?

[Capistrano] Re: exit status and task success

2009-01-22 Thread Lee Hambley
I almost daren't link it as it caused a little controversy last week --but here's a wiki page I wrote to deal with how the Bash Capistrano tasks fit together: - http://wiki.capify.org/index.php?title=Handling_The_Unexpected - Lee 2009/1/22 Gerhardus Geldenhuis gerhardus.geldenh...@gmail.com

[Capistrano] Re: Local strategy located in same dir as deploy.rb

2009-01-22 Thread Lee Hambley
BSS, Try this for some tips... also you can look in the deploy.rb that is included by default, but making a simple method to run() your rsync command isn't too tough :) - http://wiki.capify.org/article/Neutralise_Capistrano_Default_Methods - Lee 2009/1/22 Bo Stendal Sørensen

[Capistrano] Re: [ANN] Macistrano and cap-ext-webistrano

2009-01-22 Thread Lee Hambley
Mathias, Good work, it's almost a shame it's so tightly coupled to Webistrano I look forward to updates to this project. :) - Lee 2009/1/22 Mathias Meyer pomonra...@googlemail.com Hi, I released a first version of Macistrano today [1]. It's a Mac application written in RubyCocoa to

[Capistrano] Re: Multistage in capistrano

2009-01-23 Thread Lee Hambley
Hi Gerhardus, Where are you upto so far? - Lee 2009/1/23 Gerhardus Geldenhuis gerhardus.geldenh...@gmail.com Hi am reading through the archives at the moment and am missing some good examples of how to actually use multistage. I realized that I have no idea what to do further other

[Capistrano] Re: [ANN] Macistrano and cap-ext-webistrano

2009-01-23 Thread Lee Hambley
David, I have (which I am preparing to make public) Informistrano to solve just this problem of accountability over a variety of methods... it's not fool proof, and frankly any developer who fancied a go could easily circumvent it; but it's notification and accountability non the less! Regarding

[Capistrano] Re: Can we specify :roles in a namespace?

2009-01-27 Thread Lee Hambley
Yep thats easy, here's a pastie: - http://pastie.org/371967 Don't pull me on my shoddy coding ;) but that's how the default methods work. You can put a default at any level of a nested namespace. = Lee 2009/1/27 Mike Bailey m...@bailey.net.au It just occurred to me that it would be

[Capistrano] Re: Editor for Capistrano

2009-01-27 Thread Lee Hambley
Gerardus, Capistrano files are plain Ruby, though in Textmate on the mac you get limited support for intelligently letting you browse at task/namespace level - but this is as much a bug as it is a feature. My advice would be to invest some time in configuring Vim for Ruby, a lot can be done with

[Capistrano] Re: path problems

2009-01-28 Thread Lee Hambley
Gerhardus, Actually, I didn't test this code, using File.join() you may need to add the .rb to the deploy and capistrano/deploy paths... not really sure :) - Lee 2009/1/28 Lee Hambley lee.hamb...@gmail.com Gerhardus, Open the Capfile and replace things like this: load 'deploy' if respond_to

[Capistrano] Re: path problems

2009-01-28 Thread Lee Hambley
Thanks, I am sure it will get me own my way. Regards On Jan 28, 1:57 pm, Lee Hambley lee.hamb...@gmail.com wrote: Gerhardus, Actually, I didn't test this code, using File.join() you may need to add the .rb to the deploy and capistrano/deploy paths... not really sure :) - Lee 2009/1/28

[Capistrano] Re: :on_error = :abort custom message

2009-01-28 Thread Lee Hambley
Ger, One of these two examples in my new pastie might help - though, I've not tested them :) - http://pastie.org/373172 - Lee 2009/1/28 Gerhardus Geldenhuis gerhardus.geldenh...@gmail.com Hi I believe that when I know ruby better I should be able to answer this myself but for now I

[Capistrano] Re: is Git recommended (as opposed to svn) for a one-person Rails project?

2009-01-28 Thread Lee Hambley
Greg, Git with the $7/month account on Github is perfect for a single developer, I use it for everything. - lee 2009/1/28 Greg Hauptmann greg.hauptmann.r...@gmail.com Hi all, Can I ask whether you recommend git for a one-man Rails project, taking into account (a) version controlling aspect

[Capistrano] Re: is Git recommended (as opposed to svn) for a one-person Rails project?

2009-01-29 Thread Lee Hambley
+1 for git 2009/1/29 Gaveen Prabhasara gaveen.sky...@gmail.com A little correction related to Peters comment above. Git is roughly about 3.5 years old. It's a novel approach at VCS based on the mature concept of distributed systems. Anyway, like everyone said Git is technologically sound,

[Capistrano] Re: is Git recommended (as opposed to svn) for a one-person Rails project?

2009-02-05 Thread Lee Hambley
There's no such thing as a git server -- and your web/db/app server needs access to your repository. To work like this, You'll need to use the copy strategy, which just uploads a copy of the code to the server, or you may be able to tell your server how to reach your laptop, but that is asking for

[Capistrano] Re: is Git recommended (as opposed to svn) for a one-person Rails project?

2009-02-05 Thread Lee Hambley
of PragmaticVersionControl - with Git, is called Running a Git Server with Gitosis. Regards 2009/2/5 Lee Hambley lee.hamb...@gmail.com: There's no such thing as a git server -- and your web/db/app server needs access to your repository. To work like this, You'll need to use the copy

[Capistrano] Re: Using the put helper with sudo

2009-02-07 Thread Lee Hambley
Sean, We solve this problem by ensuring that .conf apache files are also loaded from the current/ directory of our app, so you only need sudo to alter the system's apache config once. The alternative is to put() the file, and sudo symlink it. - Lee 2009/2/7 Sean seanmichaelbr...@gmail.com Is

[Capistrano] Re: Installing a msi in slient mode on a remote windows machine using Capistrano

2009-02-11 Thread Lee Hambley
Mandeepak, if the machine is running an ssh daemon, and can be reached by capistrano, yes - you can run anything that SSH could run on that machine. - Lee 2009/2/11 Mandeepak mandeep...@gmail.com Hi, Can we execute the below install command using Capistrano run msiexec /i msi /qn I have

[Capistrano] Re: Spaces in Git Repository name..

2009-02-16 Thread Lee Hambley
Reply inline below 2009/2/16 sergio_101 sergiol...@village-buzz.com i am running a git repository that we hit via ssh. the problem is that the name of the directory has spaces in it... something like: /mnt/share/work server here/foo/bar i can't get deploy.rb to see the correct

[Capistrano] Re: including plugins checked out from github..

2009-02-18 Thread Lee Hambley
Sergio, Are you committing to Git, or committing, then Pushing? Depending what deploy strategy you're using (see here for more info: http://wiki.capify.org/article/Understanding_Deployment_Strategies ) - the chances are the whole codebase is deployed each time round. - Lee 2009/2/18 sergio_101

[Capistrano] Re: `require': no such file to load -- rubygems

2009-02-20 Thread Lee Hambley
Elliot, Your server doesn't appear to have Rubygems installed. You can get, and install it from the rubygems site, installation really is a snap, give that a shot (on your server) -- and post back here. - Lee 2009/2/20 elliottg x...@simplecircle.net Hello, This is my first post here. I am

[Capistrano] Re: `require': no such file to load -- rubygems

2009-02-21 Thread Lee Hambley
guess I should have ran gem -v at the beginning. At any rate I still get the same `require': no such file to load -- rubygems when running cap deploy:migrate Any thoughts? Thanks so much. Elliott P.S. Is there anyway to style text as code here? On Feb 20, 6:39 pm, Lee Hambley lee.hamb

[Capistrano] Re: Error deploying with Capistrano

2009-02-21 Thread Lee Hambley
Jaryl, That line in your config, should be two lines... export and source are two different commands. - Lee 2009/2/21 Jaryl Sim quantum.crus...@gmail.com I fixed it by adding: default_run_options[:pty] = true What a weird error to have but anyway, thanks Jamis! On Feb 21, 3:02 pm,

[Capistrano] Re: specify version of gem in capfile?

2009-02-22 Thread Lee Hambley
One quick Google search later, and I turned this up: require 'rubygems' gem 'activerecord', '=1.15.3' require 'active_record' ... bad example, but you should be able to use that ... More information on this thread: http://tinyurl.com/bpgd5m - Lee 2009/2/22 Rafael G. r...@aspgems.com

[Capistrano] How To: Capistrano Multistage with YAML Configuartion File

2009-02-22 Thread Lee Hambley
Hi List, This came up for a guy on IRC, and I've finally found time to write it up basically this is multistage without the need for the multistage extension, and works by reading its config from a YAML file. This should suffice for anyone who's only difference between stages are servers and

[Capistrano] Re: Capistrano maintainership

2009-02-26 Thread Lee Hambley
... My only concern would be that there is no more single place to go to get a copy, get info and learn about it, a bunch of similarly named forks, with similar feature sets would just cause trouble :) - Lee 2009/2/26 Jamis Buck ja...@37signals.com On 2/26/09 2:04 PM, Lee Hambley wrote: I would

[Capistrano] Re: Capistrano maintainership

2009-02-26 Thread Lee Hambley
+1 for a capistrano user on github... Does anyone know what happens, if Rubyforge, and Github gems both exist, which do you end up with... the newest, I suppose? - Lee 2009/2/26 Jamis Buck ja...@37signals.com On 2/26/09 2:27 PM, Jonathan Weiss wrote: Lee Hambley wrote: My only concern

[Capistrano] Re: Capistrano maintainership

2009-02-26 Thread Lee Hambley
Ahh :) That explains why I could never get my gem to install anywhere :) - Lee 2009/2/26 Jamis Buck ja...@37signals.com On 2/26/09 2:39 PM, Lee Hambley wrote: +1 for a capistrano user on github... Does anyone know what happens, if Rubyforge, and Github gems both exist, which do you

[Capistrano] Re: cap deploy:start won't start mongrel

2009-03-02 Thread Lee Hambley
Does your application have a mongrel configuration file, and if it does, could you pastie.org it? - Lee 2009/3/2 oler ole.rehm...@googlemail.com Hey everyone, I am trying to set my rails app up folowing the From the beginning guide. So far I have been able to solve all problems that I

[Capistrano] Re: Error with cap deploy:update

2009-03-02 Thread Lee Hambley
Stefan, Please pastie your configuration... http://pastie.org/ - Lee 2009/3/2 Stefan Frede sfr...@gmail.com Hi! Can please someone give me a hint how I can solve this problem with cap deploy:update? Problem is I get the following message which I do not understand: ** [out] ** [out]

[Capistrano] Re: building custom config files...

2009-03-02 Thread Lee Hambley
Gerhardus, http://lee.hambley.name/2008/11/server-specific-tasks-with-capistrano Give that a whirl? - Lee 2009/3/2 Gerhardus Geldenhuis gerhardus.geldenh...@gmail.com Hi I want to create custom config files and would appreciate any tips if anyone has attempted the same thing. I am

[Capistrano] Re: Error with cap deploy:update

2009-03-02 Thread Lee Hambley
Post your whole config, and don't remove anything - or you're removing the things that you probably got wrong, so we can't help you... try again please mate. - Lee 2009/3/2 Stefan Frede sfr...@gmail.com I just followed the getting started from the beginning. At the end I only want to deploy,

[Capistrano] Re: Error with cap deploy:update

2009-03-02 Thread Lee Hambley
, Stefan On 2 Mrz., 16:03, Lee Hambley lee.hamb...@gmail.com wrote: Post your whole config, and don't remove anything - or you're removing the things that you probably got wrong, so we can't help you... try again please mate. - Lee 2009/3/2 Stefan Frede sfr...@gmail.com I just

[Capistrano] Re: building custom config files...

2009-03-02 Thread Lee Hambley
I'll admit my method is a little painful, there's a lot to be said for embedding rake tasks in your source repository and pushing them up with the deploy, and then you can call them from capistrano and have them generate configuration files for you. - Lee 2009/3/2 Peter Booth

[Capistrano] Re: a suggestion idea

2009-03-03 Thread Lee Hambley
namespace :config do task :app, :roles = appservers do end task :db, :roles = dbservers do end end task :copyconfig do config.app config.db end The above should work too, if you wanted to namespace them - my syntax may be a little off, but it looks right at first glance. 2009/3/3

[Capistrano] Re: Linking app/current to cached_copy??

2009-03-08 Thread Lee Hambley
treetoad, Try a cap deploy:cleanup - then redeploy, it may be if you have run it a *lot* of times, something screwy is going on. - Lee 2009/3/8 treetoad taty...@googlemail.com I've been working on a fiddly deployment where I've had to deploy and deploy:update several times in the past few

[Capistrano] Re: Production Database Privileges

2009-03-11 Thread Lee Hambley
I'm with Sarah, Make a migration user that is the production database, with a more able user defined, use this account to run the migrations, which will still affect the production database. = Lee 2009/3/11 Sarah Mei sarah...@gmail.com One option is to set up another environment

[Capistrano] Re: cap:deploy update -- not working

2009-03-12 Thread Lee Hambley
And, if you did do as Jamis suggested, does your capfile include the load deploy.rb line ? - Lee 2009/3/12 Jamis Buck ja...@37signals.com Did you run 'capify' on your project directory? capify . (note the '.', which means 'current directory'). - Jamis On 3/11/09 5:40 PM, Josh Rachner

[Capistrano] Re: Capistrano Idioms

2009-03-12 Thread Lee Hambley
My thoughts exactly - I wonder if this should become a part of capistrano-ext ? - Lee 2009/3/12 S. Robert James srobertja...@gmail.com Great code - how 'bout wrapping it up as an extension? On Mar 10, 2:42 pm, andynu and...@gmail.com wrote: I took a different approach. Since you have

[Capistrano] Re: cap deploy:cold hangs

2009-03-15 Thread Lee Hambley
Is your git repository server answering on port 22? That isn't required for a setup task to complete. - Lee 2009/3/15 Valafar wallu...@gmail.com It seems that I'm having same problem as here: http://groups.google.com/group/capistrano/browse_thread/thread/2128df224f0954d5 On Mar 15, 8:57

[Capistrano] Re: cap deploy:cold hangs

2009-03-16 Thread Lee Hambley
Congrats, In future, post the whole problem :) - Lee 2009/3/16 Valafar wallu...@gmail.com Problem solved. I didn't have loopback interface up at mysite.ath.cx, so I couldn't make ssh connections to localhost at mysite.ath.cx. On Mar 15, 10:24 pm, Lee Hambley lee.hamb...@gmail.com wrote

[Capistrano] Re: no such file to load -- rubygems

2009-03-16 Thread Lee Hambley
Tiberiu, Can you run the tasks on a remote shell like this? ssh u...@example.com -c my test task that requires rubygems in the path I suspect that will fail, as going that way you get a tty, not a pty and should not get an environment, I suspect in capistrano you need the pty option.. here's

[Capistrano] Re: no such file to load -- rubygems

2009-03-17 Thread Lee Hambley
rubygems at the default installation path and all is working now. I wish I gave your solution a try, but I'm really behind and can't afford to. Thanks again. Tiberiu On Mar 16, 4:12 pm, Lee Hambley lee.hamb...@gmail.com wrote: Tiberiu, Can you run the tasks on a remote shell like

[Capistrano] Re: Updating the REVISION file on the servers being deployed to

2009-03-17 Thread Lee Hambley
Ian, You know of course that the svn-up mantra breaks the benefit of revisioned releases with Capistrano, might I suggest you speed up an actual deploy with deploy_via(:remote_cache)http://wiki.capify.org/index.php/Understanding_Deployment_Strategies#Deploy_Strategy_:remote_cache ? - Lee

[Capistrano] Re: Updating the REVISION file on the servers being deployed to

2009-03-17 Thread Lee Hambley
and for larger full release updates we do a normal cap deploy. Be that as is may, I am still looking to update the REVISION file without reinventing the wheel so to speak. - Ian On Tue, Mar 17, 2009 at 12:25 PM, Lee Hambley lee.hamb...@gmail.com wrote: Ian, You know of course

[Capistrano] Re: deploy:update_code on windows converting forward slash to backslash in git repository url

2009-03-18 Thread Lee Hambley
Zan99, Are you using File.join() in your code anywhere ? - Lee 2009/3/18 zan99 hzan...@gmail.com Hi, I'm trying to do a cap deploy from my Windows machine via a remote GitHub repository. However, it is failing because deploy:update_code is converting the forward slash in my repository url

[Capistrano] Re: deploy:update_code on windows converting forward slash to backslash in git repository url

2009-03-18 Thread Lee Hambley
/3/18 Lee Hambley lee.hamb...@gmail.com Zan99, Are you using File.join() in your code anywhere ? - Lee 2009/3/18 zan99 hzan...@gmail.com Hi, I'm trying to do a cap deploy from my Windows machine via a remote GitHub repository. However, it is failing because deploy:update_code

[Capistrano] Re: Updating the REVISION file on the servers being deployed to

2009-03-18 Thread Lee Hambley
effort to get management to go this far and I'd rather save the points for another day, if you know what I mean. Thanks for the help. Cheers, - Ian On Tue, Mar 17, 2009 at 12:56 PM, Lee Hambley lee.hamb...@gmail.com wrote: Sure Ian, Can you not though, using either remote_cache

[Capistrano] Re: deploy from mercurial repository with http auth

2009-03-18 Thread Lee Hambley
Hi Pierre, There may be some scope in setting the scm_username and scm_password (maybe scm_user, i forget) but I suspect these won't work for you, it may be worth a try though; also, in a slightly hacky manner, you may gain some mileage by making use of the HTTP-password-in-url ... try something

[Capistrano] Re: deploy:update_code on windows converting forward slash to backslash in git repository url

2009-03-18 Thread Lee Hambley
I suppose you do it in your Capfile, as early as possible. - Lee 2009/3/18 zan99 hzan...@gmail.com Lee, thanks for that idea. Any suggestion on where/how to set this, so that it is recognized when I run cap deploy? On Mar 18, 3:20 am, Lee Hambley lee.hamb...@gmail.com wrote: Zan, You

[Capistrano] Re: Error accessing git repo with capistrano

2009-03-18 Thread Lee Hambley
You can set :repository and either :remote_repository or :local_repository (:repository being the opposite) ... check the docs and you cna see, you can use one repos, and the server will use another - Lee 2009/3/18 Sarah Mei sarah...@gmail.com executing locally: git ls-remote

[Capistrano] Re: Error accessing git repo with capistrano

2009-03-18 Thread Lee Hambley
Hi François, I'm not exactly sure why it works this way either, locally does mean locally though :) - Lee 2009/3/18 François Montel zeroh...@gmail.com Thanks, that clarified it. I had read the docs, but I didn't realize capistrano would try to run git on my local computer (why would it

[Capistrano] Re: How to deploy with SSH from Windows?

2009-03-30 Thread Lee Hambley
Di you have an SSH key, and is it at %w(~/.ssh/id_rsa.pub) ? What SSH client are you using ? - Lee 2009/3/30 Masuda msd@gmail.com Hi,there. I'm trying to deploy with Capistrano 2.5.5 and git. But when using cap deploy command, server requires password for Windows login user name,

[Capistrano] Re: How to deploy with SSH from Windows?

2009-03-30 Thread Lee Hambley
I'm not familiar with a windows installation, since Net::SSH is a pure-ruby implementation of an SSH client, there shouldn't be one required if you are deploying *to* windows that isn't going to work very well for you... looking at the logs, you aren't entering a valid password for the target

[Capistrano] Re: Capistrano vs Rake for non Rails deployment.

2009-03-30 Thread Lee Hambley
Hi Alex, I don't mean to be rude in the least, but there are a few glaringly obvious I'm new to ruby problems with your Rake task that are going to limit its usefulness to the community, I'd be happy to work them through with you if you are interested, I do not however want to turn this thread

[Capistrano] Re: Default gem path for capistrano

2009-04-01 Thread Lee Hambley
the obvious solution would be to remove the old one ? - Lee 2009/3/31 Wayne Soh wayne@gmail.com Hi, I'm not sure whether this is exactly a gem question or a capistrano question. I have a linux set up with gem_path set as /usr/local/lib/ruby/gems/ 1.8 and capistrano 2.5.5 installed to

[Capistrano] Re: How to deploy with SSH from Windows?

2009-04-01 Thread Lee Hambley
Where is your Git repository hosted? - Lee 2009/4/1 Masuda msd@gmail.com Thanks for replies. Capistrano SSH key authentication seems to be going well, because cap deploy:setup command was finished and I confirmed directories were created. Perhaps the problem is git SSH key

[Capistrano] Re: First use Help

2009-04-01 Thread Lee Hambley
Hi Christophe, Please find my responses inline below. 2009/4/1 Christophe christophe.gime...@gmail.com Hello, I'm new to Capistrano and I need some help for my first steps : - Where can I find documentation about all the commands allowed in a Capfile ? Sorry if I missed this There is a

[Capistrano] Re: Default gem path for capistrano

2009-04-01 Thread Lee Hambley
Wayne, In your terminal, run this `which cap` and tell us the result. - Lee 2009/4/1 Wayne Soh wayne@gmail.com How do I do that? PATH in bash_profile is PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/local/bin:/usr/bin currently. 2009/4/1 E. Johnson r...@erikj.info Sounds like a shell

[Capistrano] Re: Capistrano error

2009-04-06 Thread Lee Hambley
Olivier, Do you have svn installed (and in the Path) on your local machine, at first glance that seems to be what the error is. - Lee 2009/4/6 CiriusMex cirius...@gmail.com Hi guys, I got a problem with capistrano configuration. Here comes my deploy.rb file: set :application, CondoWeb

[Capistrano] Re: Capistrano error

2009-04-06 Thread Lee Hambley
a lot for your help ^^ On 6 abr, 02:26, Lee Hambley lee.hamb...@gmail.com wrote: Olivier, Do you have svn installed (and in the Path) on your local machine, at first glance that seems to be what the error is. - Lee 2009/4/6 CiriusMex cirius...@gmail.com Hi guys, I

[Capistrano] Re: Capistrano error

2009-04-06 Thread Lee Hambley
Have you run deploy:setup ? - Lee 2009/4/6 CiriusMex cirius...@gmail.com Ok, found something on internet, the problem is that I didn't had a ssh.exe in the svn folder. Copied the TurtoisePLink.exe in the svn directory and renamed it ssh.exe and did the trick. But I'm having a new problem

[Capistrano] Re: Capistrano error

2009-04-06 Thread Lee Hambley
finished On 6 abr, 04:45, Lee Hambley lee.hamb...@gmail.com wrote: Have you run deploy:setup ? - Lee 2009/4/6 CiriusMex cirius...@gmail.com Ok, found something on internet, the problem is that I didn't had a ssh.exe in the svn folder. Copied the TurtoisePLink.exe in the svn

[Capistrano] Re: Capistrano error

2009-04-06 Thread Lee Hambley
...@condow.com:7822/home/condow09/ svn/CondoWeb and set :repository, svn+ssh:7822//condo...@condow.com/home/condow09/svn/ CondoWeb Without any result... On 6 abr, 16:33, Lee Hambley lee.hamb...@gmail.com wrote: Since you are using svn+ssh you need both, can you try setting the :repository

[Capistrano] Re: Capistrano error

2009-04-06 Thread Lee Hambley
but they weren't of any help...^^ On 6 abr, 17:12, Lee Hambley lee.hamb...@gmail.com wrote: The former is the correct syntax for the command, if it were to work, I will examine some svn documentation and get back to you... that alternative, on the face of it may be to open a tunnel from your deployment

[Capistrano] Re: Capistrano error

2009-04-07 Thread Lee Hambley
was in contact with the hosting support service but they weren't of any help...^^ On 6 abr, 17:12, Lee Hambley lee.hamb...@gmail.com wrote: The former is the correct syntax for the command, if it were to work, I will examine some svn documentation and get back to you... that alternative

[Capistrano] Re: Capistrano error

2009-04-07 Thread Lee Hambley
:) 2009/4/7 Rafael G. r...@aspgems.com Yeah! You find it :) Lee Hambley wrote: How's this one? * http://bit.ly/ZvDC - Lee 2009/4/7 Rafael G. r...@aspgems.com mailto:r...@aspgems.com Sorry, I pasted a wrong link. I'm searching the same for windows in my history

[Capistrano] Re: Capistrano doesn't ln correctly, at least in my case

2009-04-09 Thread Lee Hambley
It replaces it. - Lee 2009/4/9 Andrei andrei.m...@gmail.com Capistrano creates links to current - rails/alfaim/releases/ 20090409133222 , the problem is that the actual location of the release is at $HOME/rails/alfaim/releases/20090409133222 . The same problem appears for shared folder.

[Capistrano] Re: Capistrano hangs on shell command for many computers on ruby 1.8.6-p368

2009-04-14 Thread Lee Hambley
Ivan, Please open a ticket on lighthouse app: - http://capistrano.lighthouseapp.com/ Hopefully someone techy can pick it up there 2009/4/14 Ivan Evtuhovich evtuhov...@gmail.com Hello, i try to use ruby 1.8.6-p368 cat config/deploy/production.rb cat config/deploy/production.rb server

  1   2   3   4   5   6   7   8   9   10   >