[Capistrano] Re: slightly [OT]

2007-07-10 Thread lee hartley
Thanks for the feedback! That sounds better...I will move it to a module thanks lee On 7/10/07, Jamis Buck <[EMAIL PROTECTED]> wrote: > > Lee, > > One technique I use when something does seem to quite "fit" anywhere > is to put it in a module, in the lib/ directory. Then I just include > that mo

[Capistrano] Re: Cap 2.0 file upload problem

2007-07-10 Thread Ezra Zygmuntowicz
What version of RUby itself are all of you experiencing this problem running? Is it perhaps ruby 1.8.6? I've been doing file transfers with cap here of up to 25Mb without ever seeing this issue no matter what i call before or after the put command. THis was with ruby 1.8.5

[Capistrano] Re: Automatically checking dependencies before deployment

2007-07-10 Thread Chris Bailey
I'm checking for gems, but all of the gem checks are scoped to the app role (except for the local gem check for tinder (so we can post deploy notices to Campfire :). But, as it turns out, we now need gem on the DB box, so it's sort of a non-issue for us now :) On 7/10/07, Jamis Buck <[EMAIL PROT

[Capistrano] Re: Automatically checking dependencies before deployment

2007-07-10 Thread Jamis Buck
Wellcurrently, if you depend on any gem, cap will automatically add a "depend :remote, :command, :gem". It is that automatically added check that is failing. (Try grepping deploy.rb for "Try setting" and you'll see where that's happening.) I'm not sure what the best way to handle this is (asi

[Capistrano] Re: Automatically checking dependencies before deployment

2007-07-10 Thread Chris Bailey
Or maybe not :-/ I have this: depend :remote, :command, :gem, :roles => :app Yet, it's running that check on my DB machines. I get this back on a deploy:check: --> `gem' command could not be found. Try setting :gem_command (vip-db.mydomain.com) On 7/7/07, Chris Bailey <[EMAIL PROTECTED]> wro

[Capistrano] Re: variable?

2007-07-10 Thread Jamis Buck
You might find some enlightenment here: http://groups.google.com/group/capistrano/browse_thread/thread/389fa347ab955fbd/013e03ccfc7ac8bb?lnk=gst&q=capistrano%3Ahost&rnum=1#013e03ccfc7ac8bb Or, if google totally munges that url: http://tinyurl.com/2q6xuq The short summary answer is that, n

[Capistrano] variable?

2007-07-10 Thread LarryK
Hi, I'm new to Capistrano, but have successfully used 2.0 Preview 4 to set up automatic deployment from WinXP to Dreamhost. It's neat-o-matic! Thank you to Jamis and the community! My question: In my after_deploy task, my thought is to do a curl command to make sure that everything is hunky-dor

[Capistrano] Re: Uploads with file_column, preserving previous pictures..

2007-07-10 Thread Jamis Buck
Well, you can go in and comment out the touch operation, but note that doing so may cause your asset timestamps to be slightly off, and will totally invalidate any performance increase you might gain from asset timestamping. (That's the reason we added that find+touch command.) - Jamis On 7/10/0

[Capistrano] Re: Uploads with file_column, preserving previous pictures..

2007-07-10 Thread Eugenol
On Jul 10, 5:24 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > How many files have you got in public/images, public/stylesheets, and > public/javascripts? That line just takes a few seconds to execute for > me, and we probably have more than a hundred files across all three of > those directories

[Capistrano] Re: full line of data from run command

2007-07-10 Thread Jamis Buck
Nope, that's about the way I'd do it, too. You can clean it up a bit by using default values for the Hash: all_data = Hash.new { |h,k| h[k] = "" } Then you don't have to test for whether any particular value in the hash is nil. You can just append to it blindly: all_data[channel[:host]] <<

[Capistrano] Re: cap in rails

2007-07-10 Thread Jamis Buck
Sorry about that. That was a bug that crept in with the introduction of the :on_error => :continue feature. I've just committed a fix. In the meantime, you can apply this patch to get things working for you again: Index: lib/capistrano/configuration/connections.rb

[Capistrano] Re: slightly [OT]

2007-07-10 Thread Jamis Buck
Lee, One technique I use when something does seem to quite "fit" anywhere is to put it in a module, in the lib/ directory. Then I just include that module in (e.g.) the application controller, or a model. If I don't even know where to include it, though, another option is to break it out into it

[Capistrano] Re: Uploads with file_column, preserving previous pictures..

2007-07-10 Thread Jamis Buck
How many files have you got in public/images, public/stylesheets, and public/javascripts? That line just takes a few seconds to execute for me, and we probably have more than a hundred files across all three of those directories. - Jamis On 7/10/07, Eugenol <[EMAIL PROTECTED]> wrote: > > Hello J

[Capistrano] Re: Uploads with file_column, preserving previous pictures..

2007-07-10 Thread Eugenol
Hello Jamis, Of course they aren't stored in public/images. But it is still curious that capistrano halts so much time at that step. Any idea ? Regards On Jul 10, 3:57 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > Are you storing the uploaded files in public/images, > public/stylesheets, or pu

[Capistrano] Re: Uploads with file_column, preserving previous pictures..

2007-07-10 Thread Jamis Buck
Are you storing the uploaded files in public/images, public/stylesheets, or public/javascripts? If so, you might want to rethink that, and put them in public/uploads or something, since the idea behind public/images is that you store your applications public assets there, the bits and pieces of yo

[Capistrano] Re: Uploads with file_column, preserving previous pictures..

2007-07-10 Thread Eugenol
On Jul 8, 4:22 am, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > If you have the directory under the shared directory, and then symlink > from your deployed version to shared after deployment, the files will > be preserved between deploys. It's only when your files are being > stored directly under