[Capistrano] Deploy hanging on defunct process

2007-04-20 Thread Jamis Buck
Craig Hockenberry recently emailed me with the solution to a problem that has bitten several people on this list. The problem is this: during a deploy, Capistrano would suddenly go off into la-la land and just hang, and on the server would be a defunct process. An SSH trace on the client

[Capistrano] Capistrano 2.0, THE END IS NEAR

2007-04-23 Thread Jamis Buck
Just a quick progress report... I spent the weekend working on the new Capistrano web site. It's not done yet, so I won't announce anything, but it's coming along and I hope to have it good enough by tomorrow evening. (*crosses fingers*) I'm a programmer (and not a designer) for a reason,

[Capistrano] Re: [PATCH] Skip Asset Time Stamping

2007-04-23 Thread Jamis Buck
Steve, My apologies, I haven't been ignoring this patch, I promise. I've just been pushing hard to get cap2 ready to go by railsconf, along with my (3-hour!) tutorial session, and the rails way presentation I'm doing with koz. I'm not 100% sure that I want to put yet another option in the

[Capistrano] Re: Capistrano deployment without access to Subversion/SCC

2007-04-23 Thread Jamis Buck
Hi Dave, This will actually be one of the supported strategies in the up- coming Capistrano 2.0. A preview release is coming shortly (e.g., a few more days). - Jamis On Apr 23, 2007, at 3:08 PM, Dave Verwer wrote: Hi I recently did some work for a client that had no access to their svn

[Capistrano] [ANN] Capistrano 2.0 Preview 1

2007-04-24 Thread Jamis Buck
It is with a great deal of excitement and anticipation that I announce the first preview release of Capistrano 2.0. This is _not_ an official release, but simply the first of several attempts to get people using what will eventually be 2.0, so that we can iron out all the wrinkles. Thus,

[Capistrano] Re: [ANN] Capistrano 2.0 Preview 1

2007-04-24 Thread Jamis Buck
, Jamis Buck wrote: It is with a great deal of excitement and anticipation that I announce the first preview release of Capistrano 2.0. This is _not_ an official release, but simply the first of several attempts to get people using what will eventually be 2.0, so that we can iron out all

[Capistrano] Re: [ANN] Capistrano 2.0 Preview 1

2007-04-25 Thread Jamis Buck
On Apr 25, 2007, at 6:57 AM, jesse newland wrote: Thanks Jamis! I've updated most of my recipes, and they're working great. Now, onto the extensions.. Is there an example anywhere of how extensions should be structured for 2.0? Alas, nothing yet. I hope to rectify that today or tomorrow.

[Capistrano] Re: exclude directories when deploying

2007-04-25 Thread Jamis Buck
Mark, Because capistrano assumes everything under the project directory is deployable, the easiest fix might be to rearrange your directory tree so that the doc directory is elsewhere, e.g.: * source - doc - trunk And then you deploy source/trunk. - Jamis On Apr 25, 2007, at

[Capistrano] Re: [ANN] Capistrano 2.0 Preview 1

2007-04-25 Thread Jamis Buck
, for Capistrano. - Jamis On Apr 25, 2007, at 9:57 AM, Carl Lerche wrote: Just a quick suggestion for the site. I always thought it would be cool to have a wiki or some place where we all could post and share our recipes, extensions, cool tricks, etc... in one place. -carl On 4/24/07, Jamis Buck

[Capistrano] Re: [ANN] Capistrano 2.0 Preview 1

2007-04-25 Thread Jamis Buck
On Apr 25, 2007, at 6:11 AM, Chris McGrath wrote: We have something hacked up to do something similar to deploy_via, except we use rsync rather than a straight cp. Would you take a patch that allowed for a remote_cache_copy_command or something like that? I'd be willing to consider any new

[Capistrano] Re: [ANN] Capistrano 2.0 Preview 1

2007-04-25 Thread Jamis Buck
, Mike Bailey wrote: I've just read the capify site from start to finish. Great documentation! - Mike On 4/25/07, Jamis Buck [EMAIL PROTECTED] wrote: It is with a great deal of excitement and anticipation that I announce the first preview release of Capistrano 2.0. This is _not_

[Capistrano] Re: Cap2 deploy via copy checksout in the current directory

2007-04-26 Thread Jamis Buck
Doug, Cap should probably be using Dir.tmpdir instead of the current working directory. I'll make that happen. - Jamis On Apr 26, 2007, at 9:36 AM, Doug Barth wrote: I'm playing around with Capistrano 2.0. The first order of business for me (after upgrading my recipe of course) is to

[Capistrano] Getting Started Guide

2007-04-27 Thread Jamis Buck
Alright, I finished a first pass at a Getting Started guide for Capistrano (2.0) and Rails (since that will be, for most comers, the most common use-case initially). http://www.capify.org/getting-started http://www.capify.org/getting-started/rails I'll be adding non-Rails-related

[Capistrano] Re: subversion.rb:56:in `query_revision': undefined method `[]

2007-04-27 Thread Jamis Buck
Which deployment strategy are you using? And does the svn executable exist at /home/x/bin/svn on the machine that is doing the info query? - Jamis On Apr 27, 2007, at 2:27 PM, merg wrote: When doing a cap deploy the cap the * executing `deploy:update_code' fails. I tried the svn info

[Capistrano] Re: subversion.rb:56:in `query_revision': undefined method `[]

2007-04-28 Thread Jamis Buck
On Apr 27, 2007, at 3:35 PM, merg wrote: And does the svn executable exist at /home/x/bin/svn on the machine that is doing the info query? svn is on a different location on my local machine, and this is where it now goes wrong when specifying scm_command. Gah, you're right, that would be

[Capistrano] Re: Suspected bug in cap deploy:check

2007-04-29 Thread Jamis Buck
guh, yeah, that's what I get for not having unit tests for the deployment code yet. :( The check method for remote deployments (e.g., checkout based) is broken. If you open capistrano/recipes/deploy/strategy/remote.rb and find the def check! method, you can replace it with the following:

[Capistrano] Re: Where to specify desc for new namespace in 2.0

2007-04-30 Thread Jamis Buck
Steve, Ah, yeah, that's confusing. Here's what will work: deploy.app.desc Start mongrel cluster deploy.app.task ... Or deploy.namespace :app do desc Start mongrel cluster task :start ... end I'll rethink the decision to put desc as a method of the namespace. - Jamis

[Capistrano] Re: Possible issue with Cap 1.4.1 and net-ssh 1.1.0?

2007-05-01 Thread Jamis Buck
Grrr. I hate Windows. Can someone with Windows networking chops take a look at that and see if they can figure out why Net::SSH is choking? Otherwise, I'm just going to add a caveat saying Windows users are out of luck and should not upgrade. - Jamis On May 1, 2007, at 2:55 PM, LarryK

[Capistrano] Re: Possible to use Capistrano with this setup?

2007-05-02 Thread Jamis Buck
Daniel, Yes, Capistrano was designed with just this setup in mind. You basically just tell Capistrano that your web server is a gateway into your other servers: set :gateway, web.server role :web, web.server role :app, app.server All connections to the servers specified in the

[Capistrano] Re: Cold deploy error: no revision number to feed svn -r

2007-05-02 Thread Jamis Buck
Ah, good catch, Ned. That's bitten others, too; I'd definitely accept patches to make the subversion module understand non-english locales. - Jamis On May 2, 2007, at 4:36 AM, Ned Baldessin wrote: Issue solved : I was using a french locale, not en_US.UTF-8, so svn info gave me : Chemin

[Capistrano] Re: Tired of being pimped by SVN...

2007-05-02 Thread Jamis Buck
On 5/2/07, Jamis Buck [EMAIL PROTECTED] wrote: On May 2, 2007, at 6:32 AM, [EMAIL PROTECTED] wrote: I know Jamis is probably working on the tutorial for 2.0. Can anyone please give share a quick tutorial on the tarball method for deploying? First, set the :deploy_via variable

[Capistrano] Re: after_after_

2007-05-04 Thread Jamis Buck
Thanks for raising this, Mike. I've been waiting (since before 1.0) for this to become an issue, and it looks like the time has come. Here's what I'm thinking of hacking into cap2: before :update = :custom_task after :deploy = :another_task Also before :update do # ... end

[Capistrano] Re: a before_everything task?

2007-05-04 Thread Jamis Buck
Sounds like this is leaning more towards a kind of tracing/callback functionality: on :task_enter = :some_task on :task_exit = :another_task That also lends itself to other kinds of hooks, and provides a supporting infrastructure for the before/after hooks I posted in an earlier

[Capistrano] Re: ERR: /strategy/remote.rb:20:in `test': unknown command ?t (ArgumentError)

2007-05-05 Thread Jamis Buck
Yeah, it's a known bug in 1.99.0. A fix was posted here: http://groups.google.com/group/capistrano/browse_thread/thread/ 3b987a204db59842/385fcc82741dfd09#385fcc82741dfd09 (I'm sure that'll wrap, but you can google the capistrano list for deploy:check and find it if you need to.) The

[Capistrano] Re: Question about cold_deploy

2007-05-07 Thread Jamis Buck
Jeff, The spawner/reaper dance is not specific to fcgi--it's also for mongrel. That said, if you are using a cluster of mongrel instances, many people are prefering the mongrel_cluster utility to the rails spawner. However, one way or another, you're still going to need to spin up your

[Capistrano] Re: Cap2: Tasks not appearing with -T unless they have a desc

2007-05-07 Thread Jamis Buck
That is, as you said, Capistrano being opinionated. cap -T will only show tasks with descriptions. If you want to show all tasks, regardless of whether they have a description or not, add a -v: cap -Tv That'll give you the full list. Note that if you only do -T, and there are tasks

[Capistrano] Re: after_after_

2007-05-07 Thread Jamis Buck
to have PR2 ready to announce by the end of this week. - Jamis - Mike On 5/5/07, Jamis Buck [EMAIL PROTECTED] wrote: Thanks for raising this, Mike. I've been waiting (since before 1.0) for this to become an issue, and it looks like the time has come. Here's what I'm thinking of hacking

[Capistrano] Re: [ann]how to use many step gateways.

2007-05-07 Thread Jamis Buck
Very nice! Thanks for sharing this. - Jamis On May 3, 2007, at 6:00 PM, [EMAIL PROTECTED] wrote: In my networks, I need to login to a gateway server through two other servers. [my pc] -- [hostA] -- [hostB] -- [gateway] -- [target servers] so, I extend gateway.rb and make gateways.rb

[Capistrano] Re: deployment with svn over http, reverse tunnel from the webserver

2007-05-08 Thread Jamis Buck
I'm not sure I understand what you mean by reverse tunnel. Is the problem that your production environment cannot access your subversion repository? If so, then the solution is in Capistrano 2.0, where you can say: set :deploy_via, :copy And deployments will then do a local checkout,

[Capistrano] Re: subversion.rb:56:in `query_revision': undefined method `[]

2007-05-08 Thread Jamis Buck
This has been fixed in http://dev.rubyonrails.org/changeset/6702. It will be part of Preview Release 2, later this week. The above change implements the following: 1. If you set neither :scm_command nor :local_scm_command, the default will be used for both local and remote hosts. 2. If you

[Capistrano] Re: [request] add set options for Capistrano::Logger in capfile.

2007-05-09 Thread Jamis Buck
The problem with that, though, is that the configuration instance (and therefore the logger) are created _before_ the capfile is loaded. I could see having a new command-line switch that allowed you to specify the output of the log, but it's not something you can set in the capfile,

[Capistrano] Re: Fix for deploy_via :copy

2007-05-10 Thread Jamis Buck
Good catch, Scott. I'll get that patch applied tonight. - Jamis On May 10, 2007, at 3:43 PM, Scott Chacon wrote: In a previous change to copy.rb (6589), the tarball was moved from being created in the working directory to being created in /tmp. Doing that made the tar command include the

[Capistrano] Re: Cap for automating processes on remote hosts

2007-05-10 Thread Jamis Buck
That's...not recommended. Rake syntax and cap syntax are (perhaps unfortunately) very similar, but they are not identical. Also, semantically, Rake tasks and cap tasks are very different. Rake works by building a dependency graph and executing tasks in the order that satisfies the

[Capistrano] [ANN] Capistrano 2.0 Preview 2

2007-05-10 Thread Jamis Buck
The upcoming Capistrano 2.0 release continues to evolve! Remote administration of single servers and server clusters has never been easier. With Capistrano, you can: * Deploy web applications with a single command * Keep software in sync across multiple machines * Install entire servers with

[Capistrano] Re: logging to file

2007-05-11 Thread Jamis Buck
Lee, Currently, there's not really a way to do it. The Capistrano::Logger class itself supports an :output option, which can specify either an IO object or a filename, but the primary logger instance is created in Capistrano::Configuration#initialize, and there is not any way to pass

[Capistrano] Re: [ANN] Capistrano 2.0 Preview 2

2007-05-11 Thread Jamis Buck
On May 11, 2007, at 1:47 AM, Tim Lucas wrote: Fantastic work, especially when you're so busy. A quick q: Thanks! Why a migrate rather than a db:schema:load for setting up the DB? Mostly because I don't think it matters 99.9% time on a first deploy, but also because deploy:migrate already

[Capistrano] Re: 2.0 Compatibility question

2007-05-11 Thread Jamis Buck
Actually, the old version of that recipe would work fine in Cap2, you'd just get a deprecation warning for the Capistrano.configuration call. There's no need to switch to the new after() keyword, since after_update_code will continue to work as before. If you just want to get rid of the

[Capistrano] Re: Running slightly different commands in parallel

2007-05-14 Thread Jamis Buck
The core command must be the same on all hosts for cap to run it in parallel, but cap2 provides a way to substitute the hostname into the command. Thus, if you have a script for each host, which contains the commands you want executed on that host, you could then just invoke the script

[Capistrano] Re: Variation by Server in the run command

2007-05-18 Thread Jamis Buck
On May 18, 2007, at 6:17 AM, Chris Berry wrote: I have upgraded to Cap2, and what I mention below run echo \port = #{host_to_port_map[$CAPISTRANO:HOST$]}\ is *not* possible. $CAPISTRANO:HOST$ is treated simply as a placeholder. It is not evaluated (it is simply substituted), so it

[Capistrano] Re: Setting up Linux users and associated deploy.rb settings

2007-05-18 Thread Jamis Buck
You'll also need to set the :runner variable, which specifies who sudo will try to run the command as. If, on the other hand, you don't want that command to use sudo, you'll need to set :use_sudo to false. set :runner, root # sudo to root or set :use_sudo, false # disable sudo -

[Capistrano] Re: 2.0 release plan

2007-05-21 Thread Jamis Buck
Moses, I really feel that 1.99.1 is pretty close to what 2.0 needs to be. The big things lacking before I feel confident putting the 2.0 final stamp on it are primarily documentation-oriented. Once I'm back from vacation (next week), I'll consult with Ezra and Mike and we'll see where we

[Capistrano] Re: Automate javascript and stylesheet caching

2007-05-21 Thread Jamis Buck
As I understand it, the caching stuff simply looks for all files in (e.g.) public/stylesheets and concatenates them into a single file, called all.css (or all.js, for the javascript files). Thus, if you were to create a task that did a cat *.css all.css and then copied that to your asset

[Capistrano] Re: Spin: command not found

2007-05-21 Thread Jamis Buck
Dan, Make sure the spin script has the executable bit set, and that the shebang line (if it exists) points at the correct location for the shell on the remote host. - Jamis On May 21, 2007, at 8:28 AM, DA Hancu wrote: I am trying to get rails to deploy to OS X server running apache and

[Capistrano] Re: Could not determine latest revision error during deploy

2007-05-22 Thread Jamis Buck
Sounds like your :repository variable is set to something invalid, or unreachable by the remote host. In cap 1.x, both the local host and the remote host must be able to access the repository as defined in the :repository variable. - Jamis On May 22, 2007, at 8:41 PM, [EMAIL PROTECTED]

[Capistrano] Re: error copy deploy. Cannot create compressed file

2007-05-29 Thread Jamis Buck
Peter, Do you have a 'zip' command-line utility installed, and is it in the path? - Jamis On May 29, 2007, at 9:50 AM, peterB wrote: Hi, I got this error when I want to use cap deploy:cold My computer is on windows and it looks like capistrano cannot make the .zip, tar .. file and then

[Capistrano] Re: error copy deploy. Cannot create compressed file

2007-05-29 Thread Jamis Buck
As far as I know, Winzip doesn't have a command-line component. If you open a DOS console and type zip, does anything happen? If not, you might need to go looking for one... not being a windows user myself, I can't really help you out there. Perhaps someone else on the list can offer some

[Capistrano] Re: Is already a working copy for a different URL error on deployment

2007-05-31 Thread Jamis Buck
Scott, What version of capistrano are you using? What does your deploy.rb look like? Are you using any third-party capistrano extensions? - Jamis On May 31, 2007, at 10:45 AM, Scott wrote: Hi, I have backgroundrb installed via a svn external in my local env. Now all of a sudden when I

[Capistrano] Re: error copy deploy. Cannot create compressed file

2007-05-31 Thread Jamis Buck
Do you have the Net::SFTP gem installed? - Jamis On May 31, 2007, at 12:17 PM, peterB wrote: OK, I already found out how to add and compress files with zip utility but found another bug. The uploaded file is smaller and damaged, so it can't be uncompressed. The problem is in copy.rb file

[Capistrano] Re: error copy deploy. Cannot create compressed file

2007-05-31 Thread Jamis Buck
Ah, good catch, Sean. That's exactly it. You can't do File.read (foo) in Win32, because that opens in text mode. You need to do it longhand: contents = File.open(foo, rb) { |f| f.read } put contents, /path/on/remote/server - Jamis On May 31, 2007, at 1:20 PM, Sean Cribbs wrote: It

[Capistrano] Re: Is already a working copy for a different URL error on deployment

2007-05-31 Thread Jamis Buck
demonstrating the use of transactions. task :long_deploy do transaction do update_code disable_web symlink migrate end restart enable_web end On 31 May, 10:19, Jamis Buck [EMAIL PROTECTED] wrote: Scott, What version of capistrano are you using? What does your

[Capistrano] Re: [PATCH] Fix deploy behavior in 1.99.1 for SCM's that don't save empty folders (without resorting to hacks :)

2007-05-31 Thread Jamis Buck
Done! Thanks for the patch, Matt. - Jamis On May 31, 2007, at 2:23 PM, Matthew Elder wrote: Hi guys, this causes deploy to not make assumptions about folders existing and makes it less brittle on some scms (including mercurial). Please put it into trunk :) --Matt -- Matthew Elder

[Capistrano] Re: Setting environment variables on the remote hosts

2007-05-31 Thread Jamis Buck
Alright, I just committed a change to Capistrano that makes it so you can do: default_environment[PATH] = /foo:/bar:/baz All environment keys that you put in the default_environment hash will be applied to every run() and sudo() call. If you specify the :env key to run() or sudo(), it

[Capistrano] Re: sudo'ing an init.d script freezes

2007-06-03 Thread Jamis Buck
You might need to use nohup. If you go to the google groups page for the list, you can search for nohup to get a few messages that have been posted about that strategy: http://groups.google.com/group/capistrano/search? group=capistranoq=nohup - Jamis On Jun 3, 2007, at 1:55 AM, eden li

[Capistrano] Re: running a built in task with sudo

2007-06-03 Thread Jamis Buck
You'll need to override (redefine) the task in question, and use sudo instead of run. - Jamis On Jun 3, 2007, at 7:41 AM, doron wrote: i want a built in task like setup, update_code or symlink to run with sudo. how do i do it? --~--~-~--~~~---~--~~

[Capistrano] Re: Problem: bash: cap: command not found on Feisty

2007-06-04 Thread Jamis Buck
Does ruby -v do anything? (e.g., is ruby in your path?) How about gem -v? Is there a 'cap' script in the same directory as your 'gem' command? If all else fails, you might just try reinstalling the capistrano gem. - Jamis On Jun 4, 2007, at 7:12 AM, Udi Oron wrote: Hi! capistrano

[Capistrano] Re: Error trying my first deployment

2007-06-04 Thread Jamis Buck
on Windows does not run at all (Rails won't even load) on the Linux server I am using for deployment. How do people go about deploying in situations like this? Is it not possible to deploy an app this way? On Jun 3, 5:56 pm, Jamis Buck [EMAIL PROTECTED] wrote: Looks like you need to install

[Capistrano] Re: running a built in task with sudo

2007-06-05 Thread Jamis Buck
hooks. and also putting my user in a certain group that has more permissions. Sounds good! - Jamis On Jun 4, 2:01 am, Jamis Buck [EMAIL PROTECTED] wrote: You'll need to override (redefine) the task in question, and use sudo instead of run. - Jamis On Jun 3, 2007, at 7:41 AM, doron wrote

[Capistrano] Re: Non-rails project with capistrano 2

2007-06-05 Thread Jamis Buck
For a non-rails project, be sure to override the deploy:finalize_update task, so that it doesn't do anything: deploy.task :finalize_update do end That task contains most of the rails-specific deployment behavior. - Jamis On Jun 5, 2007, at 6:18 AM, Valentino Volonghi wrote: Hi all,

[Capistrano] Re: Rolling task

2007-06-05 Thread Jamis Buck
:sequential = true would be a nice option, and I'd certainly consider a patch for that. In the meantime, it would require some bit of hackery to make it happen. Essentially, capistrano executes each command on all matching servers in parallel. To do it in sequence, you would need to

[Capistrano] Re: Rolling task

2007-06-05 Thread Jamis Buck
) That will give you an array of Capistrano::ServerDefinition objects, each of which can be queried for the host attribute: hosts = servers.map { |s| s.host } Hope that helps, Jamis On Jun 5, 2007, at 1:35 PM, Mat Schaffer wrote: On Jun 5, 2007, at 3:28 PM, Jamis Buck wrote: :sequential = true

[Capistrano] Re: Writing recipes with mandatory role

2007-06-05 Thread Jamis Buck
Just to clarify: it _is_ legal to _declare_ a task for a non-existant or empty role. It just currently raises an exception when you try to execute that task, if no servers exist in that role at the time. As for why that is the case, I suppose it's because I couldn't envision a use case for

[Capistrano] Re: Public Key Auth from Windows to Unix

2007-06-06 Thread Jamis Buck
Hmmm. The svn repository you tested on the command-line is not the same one you have in your deploy.rb (different IP addresses, different repository path, different user name). Also, note that the recommended way to set the user name is (in cap2) with the :scm_username variable: set

[Capistrano] Re: rescue host down

2007-06-07 Thread Jamis Buck
I'm not sure I follow. Both a failed connection and a failed command cause Capistrano to abort. How is the final result any different? Your post didn't give much in the way of a use case--could you explain a bit more here? I'm curious to know how you're using this. - Jamis On Jun 7, 2007,

[Capistrano] Re: put_file command?

2007-06-07 Thread Jamis Buck
That would be Net::SFTP's fault, and I'd certainly welcome any patches that made Net::SFTP more optimal. A word of caution, though...the Net::SFTP code is...messy. It's pretty hard to follow, and I say that as the author of the library. I'm pretty embarrassed by both Net::SSH and

[Capistrano] Re: rescue host down

2007-06-07 Thread Jamis Buck
wrote: On 6/7/07, Jamis Buck [EMAIL PROTECTED] wrote: I'm not sure I follow. Both a failed connection and a failed command cause Capistrano to abort. How is the final result any different? Your post didn't give much in the way of a use case--could you explain a bit more here? I'm curious to know

[Capistrano] Re: rescue host down

2007-06-07 Thread Jamis Buck
, Jamis Buck [EMAIL PROTECTED] wrote: Ah, yes, that does make more sense. What kind of tasks are you running, where you want them to continue even if a command fails on one server? I'm curious what uses people are putting Capistrano to, besides those that I designed it for. We're using

[Capistrano] Re: rescue host down

2007-06-07 Thread Jamis Buck
Thanks, Rob. I've committed it. It also gave me an opportunity to simplify the upload tests a little bit, since they were failing after this patch (but only because they were pretty fragile). They're a bit more robust now. - Jamis On Jun 7, 2007, at 4:52 PM, Rob Holland wrote: Patch

[Capistrano] Re: Checking in hash or array for :only requirements

2007-06-11 Thread Jamis Buck
Sean, I might entertain a patch for that syntax. Could you give a real example for where it is useful, though? The contrived example makes it hard to see where the value actually lies. - Jamis On Jun 11, 2007, at 7:53 PM, Sean wrote: Hi all, I'd like to define a task like the one

[Capistrano] Re: Initial best_efforts work

2007-06-12 Thread Jamis Buck
Rob, Could you send a single patch with all of the changes aggregated? I'm a little confused as to whether this patch replaces all previous ones, or just augments them. Also, I'm thinking that instead of :best_efforts = true, it might be cleaner to say :on_error = :continue, with the

[Capistrano] Capistrano and Leopard

2007-06-12 Thread Jamis Buck
Perhaps this only tickles me because I'm the author of the software, but apparently the next version of Mac OS X will ship with Capistrano, bundled. (see http://www.apple.com/macosx/leopard/ technology/unix.html) No doubt it will ship with 1.4.1, but this is getting me motivated again on

[Capistrano] Re: tmp location deploy_via copy strategy

2007-06-12 Thread Jamis Buck
What OS are you deploying to? - Jamis On Jun 10, 2007, at 12:22 PM, gcnovus wrote: FWIW, doing the process manually: svn export http://repository 20070610183345 tar -czvf 20070610183345.tar.gz 20070610183345/ scp 20070610183345.tar.gz [EMAIL PROTECTED]:/tmp/ works fine, but it does

[Capistrano] Re: capistrano without apache

2007-06-13 Thread Jamis Buck
It just means you can use any valid svn repository URL (although, as noted, cap1 doesn't work with file: URL's out of the box. cap2 does.) Thus, you can use http if your setup supports it, or you can use svn +ssh (or anything else might have configured). - Jamis On Jun 13, 2007, at 1:25 AM,

[Capistrano] Re: help with deploy.rb

2007-06-13 Thread Jamis Buck
Where is deploy.rb located? What directory are you in when you run cap setup? - Jamis On Jun 13, 2007, at 12:07 PM, charlie caroff wrote: Hi, I am struggling with understanding how deploy.rb works. I'm using svn +ssh. I'm running capistrano 1.4.1 for FreeBSD ports. I'm not using a

[Capistrano] Re: help with deploy.rb

2007-06-13 Thread Jamis Buck
Looks like the problem is this: ssh: connect to host 192.168.1.151 port 22: Operation timed out Also, note that rake integration is deprecated, and is entirely gone in cap2. You should be using 'cap' directly, rather than via rake. - Jamis On Jun 13, 2007, at 2:21 PM, charlie caroff

[Capistrano] Re: Capistrano and Leopard

2007-06-13 Thread Jamis Buck
, cap) is going to be shipped in good working order? I remember some issues with how the ruby that shipped with 10.4 was a little wonky if I'm not mistaken. DHH has contacts there, and has been in touch. - Jamis Thanks and congrats! Glenn On 12 Jun, 08:23, Jamis Buck [EMAIL PROTECTED] wrote

[Capistrano] Re: help with deploy.rb

2007-06-13 Thread Jamis Buck
On Jun 13, 2007, at 5:05 PM, charlie caroff wrote: Also, note that rake integration is deprecated, and is entirely gone in cap2. You should be using 'cap' directly, rather than via rake. Thanks. I seem to get better error messages, though, when I use rake deploy. Is there way to run cap

[Capistrano] Re: help with deploy.rb

2007-06-13 Thread Jamis Buck
On Jun 13, 2007, at 6:06 PM, charlie caroff wrote: Also, note that rake integration is deprecated, and is entirely gone in cap2. You should be using 'cap' directly, rather than via rake. When you say cap2, do you mean that capistrano has a version 2? The latest version I see is 1.99.

[Capistrano] Re: delay evaluation of roles

2007-06-14 Thread Jamis Buck
DESC run mongrel_command do |channel,stream,data| channel.send_data(password\n) end end On 6/14/07, Jamis Buck [EMAIL PROTECTED] wrote: There's not really a special syntax for delayed evaluation of roles, but you can programmatically set roles in tasks: task :set_roles do

[Capistrano] Re: help with deploy.rb

2007-06-14 Thread Jamis Buck
If all else fails, the best way to troubleshoot these things is to take the commands that cap is trying to execute, and run them yourself. Just log into your server, and copy and paste the commands in, one at a time. It really looks like the problem is with your public/ or /u/apps/

[Capistrano] Re: Howto deploy only subset of files to another server?

2007-06-14 Thread Jamis Buck
Another option, if it is just a single file; you can declare declare the server in question to be :no_release = true, and then just use put to upload the file to wherever you need it: # :no_release = true prevents the app from being deployed to this server role :other,

[Capistrano] Re: help with deploy.rb

2007-06-14 Thread Jamis Buck
in '/u/apps/ project/current/tmp/pids' matching 'dispatch.[0-9]*.pid' ** [out :: www.project.com] ** [out :: www.project.com] (also looked for processes matching /u/ apps/project/current/public/dispatch.fcgi) ** [out :: www.project.com] command finished On Jun 14, 6:54 am, Jamis Buck

[Capistrano] Re: Bug (typo) in Perforce SCM code in Cap 1.99.1

2007-06-15 Thread Jamis Buck
Thanks, Chris. I've made that correction. Capistrano shares the same svn repository and Trac instance as Rails, so you can post bug reports and patches there: http://dev.rubyonrails.org Thanks! - Jamis On Jun 15, 2007, at 3:03 PM, Chris Bailey wrote: In the Capistrano 1.99.1 code, and

[Capistrano] Re: Bug (typo) in Perforce SCM code in Cap 1.99.1

2007-06-15 Thread Jamis Buck
? 1.99.2 will be out tonight or tomorrow. And the good news is that the prospects are bright for Mac OSX Leopard bundling cap2. :) - Jamis On 6/15/07, Jamis Buck [EMAIL PROTECTED] wrote: Thanks, Chris. I've made that correction. Capistrano shares the same svn repository and Trac instance

[Capistrano] Re: Bug (typo) in Perforce SCM code in Cap 1.99.1

2007-06-15 Thread Jamis Buck
Yes, 1.99.2 will include the Perforce typo correction. - Jamis On Jun 15, 2007, at 3:54 PM, Chris Bailey wrote: Cool (on all accounts!). Will this change be in it? On 6/15/07, Jamis Buck [EMAIL PROTECTED] wrote: On Jun 15, 2007, at 3:25 PM, Chris Bailey wrote: Thanks Jamis! Good

[Capistrano] [ANN] Capistrano 2.0 Preview Release 3

2007-06-15 Thread Jamis Buck
Alright, we're nearing the finish line! Capistrano 2.0 Preview Release #3 is now available. To install Preview #3, you'll need to grab it from the Rails beta gem server: gem install -s http://gems.rubyonrails.org capistrano Accompanying PR3 is a new page of documentation on the

[Capistrano] Re: Issues in Capistrano 2.0 Preview Release 3

2007-06-16 Thread Jamis Buck
On Jun 16, 2007, at 6:17 AM, Valery wrote: to my understanding Cap2 PR3 have (at least) two following issues. 1. PR3 contains many entries with hardcoded user app. maybe it is a good idea to get rid of this 37sig backtrace before Cap2 is out. Things like cap deploy:start cap

[Capistrano] Re: Cap2 error on cap deploy:setup

2007-06-16 Thread Jamis Buck
Cap 1.99.2 On Jun 16, 11:56 am, Jamis Buck [EMAIL PROTECTED] wrote: That's...odd. If you fire up irb, and type: gem capistrano require 'capistrano/ssh' p Capistrano::SSH What happens? What version of Ruby are you using? What version of Capistrano did you have installed

[Capistrano] Re: no passwd entry for app?

2007-06-17 Thread Jamis Buck
In cap2, it's the :runner variable. Make sure you set that to the user you want to run your processes as. - Jamis On Jun 17, 2007, at 12:33 AM, [EMAIL PROTECTED] wrote: When I do a cap deploy:cold everything works successfully until I get to here... * executing `deploy:start' *

[Capistrano] Re: Capistrano 2.0 Preview 3 scm problem

2007-06-17 Thread Jamis Buck
This is very likely due to a bug that I just fixed; type -p is not available on the vanilla POSIX shell, but is what cap 1.99.2 uses to determine whether a command exists in the path. I committed a change that uses which instead, which should be more portable. If you open

[Capistrano] Re: Cap 2.0 file upload problem

2007-06-18 Thread Jamis Buck
Dmitry, Can you tell me what OS you are running locally? Also, what Ruby version do you have installed locally? What versions of Net::SSH and Net::SFTP do you have installed? And how large is mapscript.so? - Jamis On Jun 18, 2007, at 12:46 AM, Dmitry Kurochkin wrote: Hi Capistrano devs.

[Capistrano] Re: Export vs checkout in Cap 2

2007-06-18 Thread Jamis Buck
Try this: set :deploy_via, :export - Jamis On Jun 18, 2007, at 12:14 PM, [EMAIL PROTECTED] wrote: What is the command to force an svn export, vs a checkout in capistrano 2? In prior versions, (set :checkout, export) did the trick, but cap 2 doesn't want to play nice with the same

[Capistrano] Re: few question, capistrano 2 preview 3

2007-06-18 Thread Jamis Buck
Declaring two tasks in the same namespace with the same name will cause the second definition to overwrite the first. What you want is to chain behavior onto some base implementation. Assuming mongrel_cluster provides some implementation for deploy:start, all you have to do, then, is

[Capistrano] [ANN] Net::SSH 1.1.2

2007-06-18 Thread Jamis Buck
(Pardon the slightly off-topic post, but since Capistrano builds on top of Net::SSH, I figured a release-announcement here would be useful to most of you.) Net::SSH 1.1.2 is now available! You can install it via RubyGems: gem install net-ssh Or download the source package of your choice

[Capistrano] Re: few question, capistrano 2 preview 3

2007-06-18 Thread Jamis Buck
Sorry, I missed your other two questions. :) Oops: On Jun 18, 2007, at 11:05 AM, Claudio Poli wrote: Also, I was having some trouble when writing files. mongrel_cluster has a system command to spit out a config file, based on parameters, backgroundrb don't (although it has the -l switch).

[Capistrano] Re: Cap 2.0 file upload problem

2007-06-18 Thread Jamis Buck
. Make sure you can issue the sftp call from the command line... On 18 Jun, 06:59, Jamis Buck [EMAIL PROTECTED] wrote: Dmitry, Can you tell me what OS you are running locally? Also, what Ruby version do you have installed locally? What versions of Net::SSH and Net::SFTP do you have installed

[Capistrano] Re: Cap 2.0 file upload problem

2007-06-18 Thread Jamis Buck
, 2007, at 3:42 PM, Dmitry Kurochkin wrote: Hi Jamis, I'm running Debian unstable, ruby 1.8.6 (2007-03-13 patchlevel 0) [i486-linux], net-sftp (1.1.0), net-ssh (1.1.1). mapscript.so is 1.4 MB. Regards, Dmitry On 18 июн, 16:59, Jamis Buck [EMAIL PROTECTED] wrote: Dmitry, Can you tell

[Capistrano] Re: on deploy: syntax error in finalize_update

2007-06-18 Thread Jamis Buck
Yeah, you can't really use csh or tcsh with cap, because it assumes that the following is valid: NAME=VALUE NAME=VALUE command arguments In other words, it assumes you can add to the command environment by prefixing the command with name=value pairs. I do know what the problem here is,

[Capistrano] Re: Setting environment variables on the remote hosts

2007-06-19 Thread Jamis Buck
It looks like Capistrano needs to execute the commands like this: A=B X=Y sh -c command command command That, or: export A=B X=Y command command command The latter would probably be less prone to quoting problems. It might eventually be more easily extended to support non-POSIX

[Capistrano] Re: Setting environment variables on the remote hosts

2007-06-19 Thread Jamis Buck
Thanks for the suggestion, Drew. `env' is definitely a better option there. - Jamis On Jun 19, 2007, at 9:51 AM, Drew Raines wrote: Jamis Buck wrote: It looks like Capistrano needs to execute the commands like this: A=B X=Y sh -c command command command That, or: export A=B

[Capistrano] Re: Cap2 P3 install issue on XP

2007-06-19 Thread Jamis Buck
Amr, I just tried installing capistrano on WinXP, and got the same error. I'm afraid I have no suggestions at this point, aside from the (certainly unhelpful) observation that it works fine on Mac OSX. :/ - Jamis On Jun 19, 2007, at 11:18 AM, Amr Malik wrote: I have upgraded my gem

<    1   2   3   4   5   6   7   8   9   10   >