[capistrano] Re: Cap Job's SSH Session Times Out But Doesn't Notify Cap Process

2011-09-14 Thread Rafael G.
I was wrong about my notes, it's about long tasks that block the other connections. Anyway, have you tried to play with ClientAliveCountMax and ClientAliveInterval parameters in sshd_config(in the server), I think if you try with very high values it could work. Regards On Sep 12, 10:03 pm, Bria

Re: [capistrano] Wrong tool for the job?

2010-11-09 Thread Rafael G.
El 09/11/10 03:17, Charles Calvert escribió: On 11/8/2010 7:37 PM, Mike Bailey wrote: Capistrano would be a great tool for this job. You'll put all your common config in config/deploy.rb and then include only the variations (paths, dbnames, etc) config/deploy/*.rb It's dry and you can compose '

Re: [capistrano] Deploying from internal server to external server

2010-08-27 Thread Rafael G.
Hi Joe, Send a pull request to capistrano/capistrano. Thanks El 27/08/10 22:10, Patrick Reagan escribió: Joe - You don't say where your SCM is hosted (I'm assuming it's internal), but we created a Capistrano deployment strategy that you might find useful: http://github.com/vigetlabs/cap

Re: [capistrano] Create database and database user task

2010-08-17 Thread Rafael G.
El 16/08/10 17:23, etagwerker escribió: Hello, I've just deployed a new application and I was wondering if there is a task for creating the database and then the database user in MySQL. This is what I wrote in my deploy.rb: http://gist.github.com/527117 (I'm not happy that lines 9& 10 display

Re: [capistrano] cap production deploy - hangs on 'establishing connection via gateway'

2010-07-02 Thread Rafael G.
El 02/07/10 14:49, nbenes escribió: ... At this point it hangs indefinitely until I tell it to stop. Anyone have any ideas what it's doing? Could you said me what ruby, capistrano and net-* versions you use? Thanks -- Rafa -- * You received this message because you are subscribed to th

Re: [capistrano] task failed when run via capistrano

2010-06-27 Thread Rafael G.
El 27/06/10 11:25, Michael Guterl escribió: On Wed, Jun 23, 2010 at 10:49 AM, Michael Guterl wrote: Hi Lee, On Wed, Jun 23, 2010 at 10:46 AM, Lee Hambley wrote: Micheal, Your output please? Sorry about that, I updated the original gist: http://gist.github.com/449970

Re: [capistrano] newbie script/spin permission fail

2010-06-22 Thread Rafael G.
El 21/06/10 09:20, BGarr escribió: Hi Thanks for making this Q/A available. My script/spin is chmod'ed to 775, chown'ed to the user I specified in my deploy.rb, and still I get a Permission denied error when running cap deploy:start (at nohup script/spin). /script's directory permissions are good

Re: [capistrano] Do copy_exclude patterns need wildcards?

2010-06-15 Thread Rafael G.
El 15/06/10 05:59, Robin Bowes escribió: Hi, I'm using copy_cache to speed up checkouts& I'm using :deply_via, copy. I'd like to exclude .svn dirs from the tarball so I'm looking into :copy_exclude Do I need to include wildcards in that patterm to exclude .svn dirs, eg: set :copy_exc

Re: [capistrano] Re: Git Submodule Recursive

2010-06-08 Thread Rafael G.
Recently I have a problem with Git Submodule Recursive and I had to use a plugin to solve this problem. I think that this solution(add --recursive option as default) if it don't produce any gotcha/error/... it could be a default. Anyway a path to let add options freely is welcome :) Regards

Re: [capistrano] List of ENV vars that can be passed on the command line?

2010-06-04 Thread Rafael G.
El 04/06/10 06:27, Robin Bowes escribió: Hi, Is there any documentation that lists the ENV vars that may be used on the command line to customise the deployment process? For example, I've just stumbled across HOSTFILTER, HOSTS, ROLE in some archived posts to this list. It would be nice to see

Re: [capistrano] How to execute sudo rake gems:install

2010-05-24 Thread Rafael G.
Hi Ramon, You can try this: "run "cd #{current_path}"; #{try_sudo} #{rake_path} gems:install RAILS_ENV..." Regards El 24/05/10 06:08, Ramon Tayag escribió: Hey guys, I can't seem to figure out how to execute sudo rake gems:install. I've tried: 1. run "cd #{current_path}"; #{sudo_pa

Re: [capistrano] How to limit the number of SSH channels that can be open

2010-05-20 Thread Rafael G.
El 18/05/10 22:38, Ronie Gilberto Henrich escribió: Hi Rafael, max_hosts just limit the number of hosts, not the number of ssh channels per connection. Thanks, Ronie I'm seeing the code in capistrano/lib/capistrano/ssh.rb and said at line 35: # If an :ssh_options key exists in +optio

Re: [capistrano] How to limit the number of SSH channels that can be open

2010-05-19 Thread Rafael G.
El 18/05/10 22:38, Ronie Gilberto Henrich escribió: Hi Rafael, max_hosts just limit the number of hosts, not the number of ssh channels per connection. Thanks, Ronie Ok, I don't understood. I will see for it later. -- Rafa -- * You received this message because you are subscribed to t

Re: [capistrano] How to limit the number of SSH channels that can be open

2010-05-18 Thread Rafael G.
El 18/05/10 16:58, Ronie Gilberto Henrich escribió: Hi, Is it possible to configure capistrano to limit the number of SSH channels that can be open to 1, so it does not use ssh connection multiplexing? Thanks, Ronie Hi Ronie, I guess you can use max_hosts option. For example: task :f

Re: [capistrano] new task (recipe) locall svn command : don't work

2010-05-13 Thread Rafael G.
hi bengugohit, Are you doing a "export"? Also you can check the paths: #{repository_trunk}/private/source#{repository_branch}/#{webistrano_stage} El 12/05/10 10:29, benbugohit escribió: I'm assuming that "sh" command executes the command remotely but I'm not sure because error sa

Re: [capistrano] cap deploy - fails because it checks for failed release

2010-05-06 Thread Rafael G.
Could you paste your deploy.rb in pastie(or other site) to check it? Regards On 03/05/10 04:17, val2many wrote: Hi, I had some server trouble, which had two or three deploy attempts to fail. Now, when I do a cap deploy it fails because capistrano checks for a the previous release that also faile

Re: [capistrano] cap command (and others) not found on Ubuntu 9.1

2010-05-01 Thread Rafael G.
I believe that you installed rubygems from ubuntu package, and I guess it has custom paths. To avoid problems I recommend install rubygems[1] by hand and don't use ubuntu version. Regards [1] http://rubygems.org/pages/download On 29/04/10 23:06, rm.sylvester wrote: Hi guys, I've just got

Re: [capistrano] localhost? bad idea?

2010-04-21 Thread Rafael G.
On 20/04/10 19:15, badnaam wrote: Does capistrano work on localhost deployments? I have been reading around and seems people run into problems and it's designed to work with "remote" hosts not local. Just wanted to hear your thoughts before I spend a lot of time trying this on localhost. Thank f

Re: [capistrano] modifying the "keep releases" process

2010-03-31 Thread Rafael G.
Joshua J. Kugler wrote: We're deploying our sites to Windows 2003 (via Cygwin) and have run across a problem where a directory is being held open by the web server, causing the "rm -rf" stage of the keep releases method to fail, thus causing the deployment to fail. How might we modify (or ove

Re: [capistrano] Move dir/backup files from one server to another

2010-03-25 Thread Rafael G.
A bit late but I hope it helps you: http://gist.github.com/318312 Regards joe wrote: Hello all, I'm trying to figure out how to make a task that will move a directory from my dev server to my staging server (this is the server I'm deploying to with Capistrano). The dev server informat

Re: [capistrano] Multistage Shared tasks

2010-03-16 Thread Rafael G.
TStackhouse wrote: Hi all, I was discussing this in the chat room and lhambley/tsal recommended I bring it up to the list. Basically I'm working on streamlining a multistage deploy script that I wrote for a project to be more general and have less redundant code. To that end, I'm trying to co

Re: [capistrano] deploying multiple projects through single deploy.rb

2010-03-16 Thread Rafael G.
dopedoxygen wrote: Hi, I have a repository with 4 different projects. Can I deploy all of these one by one. I want the script to be something like this. 1> On running cap deploy:php it should ask me for number of projects that are to be deployed. 2> Say if the number=2 it should ask me for the

Re: [capistrano] First Deploy >> Rakefile not found

2010-03-16 Thread Rafael G.
brianp wrote: Hey Everyone, I'm following this tutorial: http://www.isnorcreative.com/blog/28 (although I'm not on WebFaction) with some added instructions from: http://www.capify.org/index.php/From_The_Beginning My deploy.rb: http://pastie.org/871427 My Capfile: load 'deploy' if respond_to?(:

Re: [capistrano] Error while cap deploy

2010-03-09 Thread Rafael G.
Konstantinos L. wrote: Hi guys, sorry if this has been said again but i am a little confused. I have setup the VisualSVN server on my machine (windows 7), i have created my project, i have capified it etc but when i run the command cap deploy command i get this error: [testsite.gr] executing

Re: [capistrano] Re: Deploying Thinking Sphinx with Capistrano

2010-03-04 Thread Rafael G.
errors Virtual timer expired On Mar 4, 8:29 am, "Rafael G." wrote: Hi Colin, Could you execute this script on the server: "sh -c 'if [ -d /pathTo/rails/releases/20100303182701 ]; then c d /pathTo/rails/releases/20100303182701; else cd /pathTo/rails /cur

Re: [capistrano] Deploying Thinking Sphinx with Capistrano

2010-03-04 Thread Rafael G.
Hi Colin, Could you execute this script on the server: "sh -c 'if [ -d /pathTo/rails/releases/20100303182701 ]; then c d /pathTo/rails/releases/20100303182701; else cd /pathTo/rails /current; fi; rake RAILS_ENV=production thinking_sphinx:configure'" It's very odd the "Virtual timer error" Co

Re: [capistrano] Re: cap deploy:migrations, no RakeFile found

2010-03-02 Thread Rafael G.
Hi Colin, What files are in /PathTo/rails/releases/20100302172844/ ? Seems that Rakefile isn't in path. Can you confirm their existence? Colin wrote: I don't know. If I call cap deploy:migrations, it will call the methods as above on a release number that is the current time but it gets its

Re: [capistrano] Re: capistrona ruby on rails and plesk some deployment problems

2010-03-02 Thread Rafael G.
This code don't have any garantee, I wrote it on the fly. I hope you get the idea. For permissions problem: after "deploy", :change_permissions after "deploy:migrations", :change_permissions desc "Change permissions" task :change_permissions, :roles => [ :app, :db, :web ] do sudo "chown

Re: [capistrano] Re: Capistrano not copying images, stylesheets and javascript to public folder

2010-02-26 Thread Rafael G.
get copied to the server to (pathTo/rails/current/ MyApp/public/stylesheets). I was just following the beginners guide so I figured it was going to put everything where it needed to be. Can you suggest how I would get them where capistrano wants them? Thanks, Colin On Feb 25, 2:55 pm, &qu

Re: [capistrano] Re: Capistrano not copying images, stylesheets and javascript to public folder

2010-02-25 Thread Rafael G.
e: Here you go: http://pastie.org/842054 On Feb 25, 8:42 am, "Rafael G." wrote: Please, could you paste your deploy.rb in some place(gist,pastie,...)? Colin wrote: Yes. The stylesheets etc. are being copied over to pathTo/rails/current/ MyApp/public/stylesheets (whic

Re: [capistrano] Re: Capistrano not copying images, stylesheets and javascript to public folder

2010-02-25 Thread Rafael G.
Please, could you paste your deploy.rb in some place(gist,pastie,...)? Colin wrote: Yes. The stylesheets etc. are being copied over to pathTo/rails/current/ MyApp/public/stylesheets (which is where they are in my development environment) but they are not being placed in pathTo/rails/current/ pu

Re: [capistrano] capistrano/net-ssh errors on cap deploy:setup

2010-02-22 Thread Rafael G.
I guess that you compiled ruby by hand and forgot include openssl support. You need install libssl-dev , then go to ruby_source_code_path/ext/openssl then write the next commands: ruby extconf.rb make make install Regards! joe wrote: Hello everyone, I've been running through this articl

Re: [capistrano] Remote shell * (star) expansion problem

2010-02-22 Thread Rafael G.
Marc wrote: On the deploy:setup status, I'm trying to link everything on the remote repositories to the correct place in the servers (I'll have to setup rather big group of servers) My problem is that I want to link all wars on one repo dir to the destination, and I'm doing this. cmd = "ln

Re: [capistrano] Deploy to just one host?

2010-02-09 Thread Rafael G.
Robin Bowes wrote: On 09/02/10 13:08, Robin Bowes wrote: For example, I have this in dev.rb: task :enum_partition, :roles => [:puppet_masters] do desc "Enumerate hosts that are partition servers from puppet DB" # noop in dev end I replace this with: task :enum_partition, :rol

Re: [capistrano] deploy:check and config.gem

2010-02-08 Thread Rafael G.
Tom Copeland wrote: On Feb 4, 2010, at 6:39 AM, Tom Copeland wrote: Hi all - I saw some discussion of this in the archives, but has anyone done integration between deploy:check and config.gem? I know there are tricky bits - e.g., config/environments/foo.rb could declare its own depende

Re: [capistrano] Deploying with Bundler

2010-02-04 Thread Rafael G.
How do you tried it[http://www.capify.org/index.php/Path_Problems] ? More info from http://www.capify.org/index.php/Run: :pty If true, a pseudo-tty will be allocated for each command. The default is false. Note that there are benefits and drawbacks both ways. Empirically, it appears that if a

Re: [capistrano] setting gateway after a task

2010-02-01 Thread Rafael G.
I'm investigating it, when I discover something I will tell you. d wrote: Hi, Sorry, if this has been posted already... I've been using capistrano 1.3.0 for some time now and was looking to upgrade. In 1.3.0 I had the ability to set a gateway after a task, but in the current version it does no

Re: [capistrano] Re: why always get 500 error after cap deploy

2010-02-01 Thread Rafael G.
When you do "cap deploy" it upload a new release and generate current symlink(pointing to last release)? What do you do to solve 500 error? If you get a 500 error in someplace should be logged check it again nnn wrote: here is my nginx conf server { listen 80; ser

Re: [capistrano] Re: Host key verification failed

2010-01-30 Thread Rafael G.
wasserfloh wrote: The current state is, that I have manually created a folder /home/oag/ oag-server/shared/cached-copy on my server - not via capistrano - that contains the files of my app. But it seems to me, that this is not the whole deployment job and capistrano still fails on the command, I

Re: [capistrano] why always get 500 error after cap deploy

2010-01-30 Thread Rafael G.
nnn wrote: I'm new to capistrano, everything is going to smooth, cap deploy:setup, cap deploy:check deploy:cold. my application work well. but when I change my local code, even something like added new added into something view file and run cap deploy, then open browser, it always give me a 500 e

[capistrano] Re: Host key verification failed

2010-01-26 Thread Rafael G.
Hi wasserfloh, The problem is about your git configuration. When capistrano executes it in remote server: /home/oag/oag-server/shared/cached-copy && git checkout -b deploy aeba71d5b7ce45e24cdb2bf052260fbc235b3a66; fi" servers: ["oag-server"] Password: [oag-server] executing command

Re: [capistrano] Re: 2.5.13, Windows deploy.rb No such file.

2010-01-08 Thread Rafael G.
Hi Justin, I guess that you have correct thoughts about start and restart. Read your config/deploy.rb and uncomment this tasks: # If you are using Passenger mod_rails uncomment this: # if you're still using the script/reapear helper you will need # these http://github.com/rails/irs_process_

Re: [capistrano] How to maintain archives or previous releases?

2010-01-08 Thread Rafael G.
Jesse Armand wrote: Hello, I've been using Capistrano for a while, and I have to admit it's very useful. I have a question: I know there's this "releases" directory to track the current and previous releases of the deployed app. What I would like to know is, is there a clean way to maintain thi

Re: [capistrano] Deployments broken with 2.5.11

2010-01-05 Thread Rafael G.
Josh Perfetto wrote: Hi, Just upgraded to 2.5.11 and it seems a few things broke with deployments. deploy:migrate now attempts to execute the migration in the oldest release directory (rather than the newest), and deploy:cleanup deletes all but the oldest 5 directories, basically the opposite of

Re: [capistrano] Deployments broken with 2.5.11

2010-01-05 Thread Rafael G.
Josh Perfetto wrote: Hi, Just upgraded to 2.5.11 and it seems a few things broke with deployments. deploy:migrate now attempts to execute the migration in the oldest release directory (rather than the newest), and deploy:cleanup deletes all but the oldest 5 directories, basically the opposite of

Re: [capistrano] Re: ..../script/process/reaper: not found

2009-12-22 Thread Rafael G.
If have some applications that works with mongrel already. I use these tasks: namespace :deploy do desc "Modified restart task to work with mongrel cluster" task :restart, :roles => :app do run "cd #{deploy_to}/current && mongrel_rails cluster::restart -C #{deploy_to}/current/config/mong

Re: [capistrano] Capistrano seemingly freezes on deploy (used to work fine)

2009-12-18 Thread Rafael G.
antum wrote: > Hi there, > > I'm trying to deploy a PHP application from SubVersion source control > to a single server. The recipe hasn't changed and it used to work > fine, but now it stops after doing a svn checkout and doesn't budge > for hours until I press Cmd+C (I'm in Terminal, on a Mac) >

Re: [capistrano] set :user remote_user_name not affecting SSH login

2009-12-01 Thread Rafael G.
Jamie wrote: > I'm attempting my first deployment using Capistrano. The recipe > includes > > set :user, "remote_user" > > When I attempt "cap deploy" I'm prompted for > > local_u...@myserver.com's password: > > Of course the local_user has no account on the remote server so I > can't get

Re: [capistrano] installing mongrel

2009-11-18 Thread Rafael G.
prakash saud wrote: > hello, everybody > Actually i am new to capistrano. I have installed ruby 1.8.6, Rails > 2.3.4 and my OS is ubuntu . I have made a rails application. I went > through the getting started and everything went fine upto check > dependency. when i tried to install mongrel, it gi

Re: [capistrano] Re: how to specify environment variables and chdir

2009-11-11 Thread Rafael G.
I was reading the code and you can do it easily adding it to your deploy.rb: default_environment["PATH"] = "your_paths_separated_with_two_points:another_path:another_one" Default environment overwrite PATH variable. I tested it with a simple task. Another option is add your directory to th

Re: [capistrano] check Capistrano on local-host

2009-11-10 Thread Rafael G.
prakash saud wrote: > Actually, I am new to Capistrano. Currently i am using ruby version > 1.8.6 and Capistrano version 2.5.9. I tried to test a file on local- > host but i am getting error message like " connection failed for: > http://localhost:3000 (Socket Error: getaddrinfo: Name or service no

[capistrano] Re: Rails app in a subfolder of a git clone - possible ?

2009-11-02 Thread Rafael G.
Hi Thibaut, In this moment capistrano can't do it out of the box but you can do it with this patch: https://capistrano.lighthouseapp.com/projects/8716-capistrano/tickets/91-capistrano-should-support-non-root-directories#ticket-91-12 Perhaps, in the next release :) Thibaut Bar

[capistrano] Re: tasks that refuse to run after they fail twice

2009-10-30 Thread Rafael G.
Hi Patcoll, I was trying to reproduce this behaviour in a simple task but I cann't :-( I tried with this task: desc "Something to check it" task :on_error_test, :on_error => :continue, :role => :app do run "~/foobar.sh" end foobar.sh is a simple script(echo message), it's stored i

[capistrano] Re: Needed a single revision: what does it mean?

2009-10-27 Thread Rafael G.
collimarco wrote: > I have renamed shared/cached-copy into shared/cached-copy-old > > Then I have created a shared/cached-copy empty folder. > > Now I get "Not a git repository": > > http://pastie.org/672254.txt > You should delete it and not create other directory. This new directory should b

[capistrano] Re: SSH Timeouts for Long Running Migrations

2009-10-23 Thread Rafael G.
HI - we did try setting those sshd config items in all our servers - > to no avail. > > I did read of rumors of different versions of ruby (such as 1.8.6 and > lower) not having this issue. Anyone have any knowledge of this? > > Mike > > On Oct 22, 2009, at 10:43 AM, Raf

[capistrano] Re: SSH Timeouts for Long Running Migrations

2009-10-22 Thread Rafael G.
> running migrations. > > Mike > > On Oct 22, 2009, at 1:07 AM, Rafael G. wrote: > > >> Mike wrote: >> >>> We have a long running migration. After the migration finishes on one >>> box, when Cap starts the next task, the other ssh connect

[capistrano] Re: SSH Timeouts for Long Running Migrations

2009-10-22 Thread Rafael G.
Mike wrote: > We have a long running migration. After the migration finishes on one > box, when Cap starts the next task, the other ssh connections to the > other servers timeout and the deploy fails. > > I have read a number of items on the net and from this group regarding > this issue. However,

[capistrano] Re: Capistrano has ceased to start and stop mongrels

2009-10-18 Thread Rafael G.
Perhaps your mongrels are hanged then capistrano can't kill them. If you stop them by hand, erase your pid file? omnivore wrote: > development machine: Capistrano v2.5.9, Rails 2.2.2, OS X Snow Leopard > deployments machine: Capistrano v1.4.1, Rails 1.2.3, Solaris (Joyent) > Accelerator > > I cha

[capistrano] Re: Re-factor recipe code

2009-10-08 Thread Rafael G.
Robin Bowes wrote: > On 05/10/09 20:14, Rafael G. wrote: > >> An array to define servers and generate roles and task using their names. An >> aproximation could be this code: >> >> ['external_dns_cache','tinydns'].each {|dns_name| >>

[capistrano] Re: Re-factor recipe code

2009-10-05 Thread Rafael G.
An array to define servers and generate roles and task using their names. An aproximation could be this code: ['external_dns_cache','tinydns'].each {|dns_name| role dns_name.to_sym do eval("enum_#{dns_name}") end task eval("enum_#{dns_name}"), :roles => [:puppet_masters] do desc "

[capistrano] Re: Deploying to a cloned server

2009-09-24 Thread Rafael G.
If I understood, only with add machineB to role :app should works: role :app, "machineA", "machineB" role :web, "machineA" role :db, "machineA", :primary => true namespace :deploy do desc "Restarting nginx with god" task :restart, :roles => :app, :except => { :no_release => true } do

[capistrano] Re: Task execution order

2009-09-08 Thread Rafael G.
I replied too fast the pdf file is missing but you will find a github link with a graffle file. Anyway I notified to lee about the pdf file. Regards Justin Holzer wrote: > Is there any way, other than by doing a "dry run" (-n), to see what > order tasks from the default "deploy" recipe will be ex

[capistrano] Re: Task execution order

2009-09-08 Thread Rafael G.
You can see it here: http://www.capify.org/index.php/Default_Deployment_Path Justin Holzer wrote: > Is there any way, other than by doing a "dry run" (-n), to see what > order tasks from the default "deploy" recipe will be executed in? > > > > > -- Rafa --~--~-~--~~---

[capistrano] Re: cap deploy can't access bash functions on the server

2009-09-02 Thread Rafael G.
I'm not sure, but I think that capistrano uses "sh" shell to execute commands. Could you try to execute a function from "sh"? bash $ sh sh $ my-function Regards Will Clark wrote: > My functions are in /etc/bashrc. > > I am setting default_run_options[:pty] = true. I also tried moving the

[capistrano] Re: cap deploy can't access bash functions on the server

2009-09-02 Thread Rafael G.
Where're your functions? in .bashrc? If it's saved there this file is not used with this option: |default_run_options[:pty] = false| Because capistrano uses a login shell and then load .bash_profile. Perhaps it solves your problem: |default_run_options[:pty] = true| More info: http://www.ca

[capistrano] Re: Default place for files

2009-08-31 Thread Rafael G.
Hi Richie, I use the next layout: RAILS_ROOT \- config/deploy.rb \- deploy/ - stages (production.rb, staging.rb,...) if needed - common_tasks.rb \- templates/ Then I have a

[capistrano] Re: -rHEAD (Errno::ENOENT) error during cap deploy

2009-08-26 Thread Rafael G.
Do you have svn installed? As said davidonlaptop yesterday: I found out that the TortoiseSVN client I had installed does not provide Capistrano with the command svn. So the fix is simply to install the "CollabNet Subversion Client for Windows" from http://www.collab.net/downloads/subversion/ Tr

[capistrano] Re: Capistrano and Windows issue : No such file or directory - svn info

2009-08-25 Thread Rafael G.
>>> Hi David, >>> I don't even know *how* to get an environment up on windows to try this, can >>> you point me at anything, I want to improve on our windows support if I can. >>> >>> -- Lee Hambley >>> >>> Twitter:

[capistrano] Re: Capistrano and Windows issue : No such file or directory - svn info

2009-08-24 Thread Rafael G.
davidonlaptop wrote: > Hey I am unable to use Capistrano on Windows. > > This thread summarize the problem: > > http://railsforum.com/viewtopic.php?pid=107245#p107245 > > Here's my output > > [code] > * executing `deploy' > * executing `deploy:update' > ** transaction: start > * executing `

[capistrano] Re: Capistrano task not 100% compatible with rails 2.3

2009-08-22 Thread Rafael G.
+1 I agree. Mathias Meyer wrote: > On Sat, Aug 22, 2009 at 10:33 AM, Simone Carletti wrote: > > > I talked about that with Lee, we agreed on making Passenger style > deployment the new default, so we'd basically end up with something > very lightweight and more uptodate with current deployment

[capistrano] Re: Password: stty: standard input: Inappropriate ioctl for device [SOLVED - better fix would be great]

2009-08-19 Thread Rafael G.
Hi Cyrille, Sorry for no reply before but theses days are holydays and the people is gone :-) Could you open a ticket at https://capistrano.lighthouseapp.com ? we'll see it. Regards Cyrille wrote: > Sorry I got confused there: it has nothing to do with Capistrano 2.5.5 > vs 2.5.8. > > The

[capistrano] Re: Capistrano Hangs when deploying to multiple servers

2009-08-18 Thread Rafael G.
There's a patch for this problem that worked wonder for me at https://capistrano.lighthouseapp.com/projects/8716/tickets/79-capistrano-hangs-on-shell-command-for-many-computers-on-ruby-186-p368#ticket-79-33 check it and comment if it works, thanks alexkwolfe wrote: > Yes. That's exactly where it

[capistrano] Re: Capistrano can't delete domian.com/current

2009-08-16 Thread Rafael G.
How do you do the deploy? Current must be a symbolic link, not a directory. ravenna wrote: > roy-sherrills-macbook-pro:goodpress tjs$ cap production deploy > * executing `production' > triggering start callbacks for `deploy' > * executing `multistage:ensure' > * executing `deploy' > *

[capistrano] Re: Parallel server hang issue solved(?)

2009-08-12 Thread Rafael G.
Before I didn't understand you. Tomorrow I'll check your fix The other patch worked for me but I want study it. Billy wrote: > Regarding the capistrano parallel server hanging issue (http:// > groups.google.com/group/capistrano/browse_thread/thread/ > da1174fd125fad0e), I think I may have found

[capistrano] Re: Parallel server hang issue solved(?)

2009-08-12 Thread Rafael G.
There's a patch at https://capistrano.lighthouseapp.com/projects/8716/tickets/79 I'll try it right now and tell you. Billy wrote: > Regarding the capistrano parallel server hanging issue (http:// > groups.google.com/group/capistrano/browse_thread/thread/ > da1174fd125fad0e), I think I may have f

[capistrano] Re: trying to use Capistrano to install Passenger

2009-07-29 Thread Rafael G.
o work with the Linux "yes" command. >> >> run 'yes " >> " | sudo passenger-install-apache2-module' >> >> That does it. >> >> Never figured out the way capistrano can interact with prompts. >> can somebody point

[capistrano] Re: trying to use Capistrano to install Passenger

2009-07-28 Thread Rafael G.
What is your ruby version? Try to add this line to deploy.rb: set :max_hosts, 1 If it works then the problem is the ruby version(again). Third Replicator wrote: > I'm using this code from > http://pragmatig.wordpress.com/2008/10/10/capistrano-recipe-to-install-or-update-passenger/ > > task

[capistrano] Re: Capistrano error

2009-07-24 Thread Rafael G.
Yes, it likes an authentication problem: rmossuk wrote: > Enter passphrase for c:/Users/Rick/.ssh/id_rsa: > [macclesfieldnutrition.co.uk] executing command > ** [macclesfieldnutrition.co.uk :: out] Permission denied > (publickey). > -- Rafa --~--~-~--~~~---

[capistrano] Re: Capistrano error

2009-07-24 Thread Rafael G.
Add into your deploy.rb this line: ssh_options[:forward_agent] = false Read at http://groups.google.com/group/capistrano/msg/655110abb008e990?pli=1 rmossuk wrote: > hi all > > i get this error when trying to deploy my app to the server. > > Can anyone please help me as i cant find the answer an

[capistrano] Re: Capistrano Hangs when deploying to multiple servers

2009-07-24 Thread Rafael G.
What ruby version are you using? See this ticket: https://capistrano.lighthouseapp.com/projects/8716/tickets/79-capistrano-hangs-on-shell-command-for-many-computers-on-ruby-186-p368#ticket-79-29 Will Clark wrote: > When deploying to multiple app/web servers capistrano just hangs. > However, if I

[capistrano] Re: How to make duplicate task dependencies only run once

2009-07-10 Thread Rafael G.
I believe that my previous solution don't works with multiples hosts. I need sleep tomorrow see it again. mshiltonj wrote: > I have a set of tasks with a number of dependencies. There is a 'base' > or 'common' task that is a dependency of many other tasks. > > There are other tasks that have mul

[capistrano] Re: How to make duplicate task dependencies only run once

2009-07-10 Thread Rafael G.
You can solve it with a variable "base_executed", the first time that base task is executed this variable is set as true, the next time the base task should be by passed. Example: task :base do next if :base_executed puts "BASE" set :base_executed, true end task :recipe_one do

[capistrano] Re: How after connect execute all commands under another user?

2009-07-09 Thread Rafael G.
I use slackware and have this permissions: drwxr-xr-x 6 root root 4,0K 07/01/09 07:32 www/ But I don't put my rails apps on /var/www/ I separate them by users, then in the vhost I said where to find public directory (I use passenger, but it's the same for mongrel). Perhaps anyone that

[capistrano] Re: How after connect execute all commands under another user?

2009-07-08 Thread Rafael G.
those directories? > > Thanks!!! > > > > > > On Jul 8, 10:29 am, "Rafael G." wrote: > >> Hi cindy, >> >> You can solve it creating the files with your current user then do >> a chown with sudo. Example: >> >&g

[capistrano] Re: How after connect execute all commands under another user?

2009-07-08 Thread Rafael G.
Hi cindy, You can solve it creating the files with your current user then do a chown with sudo. Example: task :chown_file do run "touch ~/file_foo.txt" sudo "chown www-data:www-data file_foo.txt" end Bye! cswebgrl wrote: > I've got a related que

[capistrano] Re: Not deploy to 2 roles

2009-07-07 Thread Rafael G.
Can you try the same with other ruby version?[1] [1]https://capistrano.lighthouseapp.com/projects/8716/tickets/79-capistrano-hangs-on-shell-command-for-many-computers-on-ruby-186-p368 Shumkov wrote: > I think problem in deploing on two servers: > > role :app, '195.182', '195.182' > > macb

[capistrano] Re: :use_sudo, and when sudo is actually used

2009-07-06 Thread Rafael G.
I hope that you need to fix the permissions in /var/www/corpsite/releases. Joe McDonagh wrote: > Hi Guys, I am trying to do a really simple website push process that > doesn't involve rails or anything really, here is my deploy.rb: > > = > set :applicatio

[capistrano] Re: Identify current host

2009-07-06 Thread Rafael G.
task :bootstrap, :roles => [:master] do >> # instanceids is an array containing hostname => instanceid >> id = instanceids["$CAPISTRANO:HOST$"] >> run "register_host -H $CAPISTRANO:HOST$ -s #{id}" >> end >> Obviously, $CAPISTRANO:HOST$ d

[capistrano] Re: Identify current host

2009-07-06 Thread Rafael G.
n array containing hostname => instanceid > id = instanceids["$CAPISTRANO:HOST$"] > run "register_host -H $CAPISTRANO:HOST$ -s #{id}" > end > > Obviously, $CAPISTRANO:HOST$ doesn't interpolate on the id = > instanceids[] line. > > Thanks! > >

[capistrano] Re: Identify current host

2009-07-06 Thread Rafael G.
Gary Richardson wrote: > Hey, > > Two part question that I haven't been able to answer: > > 1) can I get the current host a task is executing on? I've read some > stuff about $CAPISTRANO:HOST$, but it doesn't seem to work for me I tested this task and works for me: task :host_name do

[capistrano] Re: Capistrano for Systems administrators

2009-07-06 Thread Rafael G.
+1 The purpose of these tools is different, I think they're complementary in system administrators field. I see Chef/puppet for configure machines and capistrano to deploy applications. Gaveen Prabhasara wrote: > Will & Lee, > > There's a no doubt that Capistrano is a very useful tool. However

[capistrano] Re: Custom SCM command name? (trouble with PATH not set for pseudo terminal)

2009-07-02 Thread Rafael G.
Hi anibal, You can customize SCM command with the variable: set :scm_command, '/home/foo/bin/bzr' Regards Aníbal Rojas wrote: > Hello, > > This started as: http://bit.ly/sutXR a few days ago > > The problem I am facing is that environment variables are not > being set for the pseudo

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Rafael G.
if they were in two > repositories (if you are thinking of them as two separate pieces of > code). Then app A) could treat app B) as submodule > > 2009/6/29 Rafael G. mailto:r...@aspgems.com>> > > > I don't know git (I use it for basics things) but could you p

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Rafael G.
I don't know git (I use it for basics things) but could you put your octave code as external in your rails app? Joshua wrote: > It resides as two subdirectories of a single git repository. > E.g., > root/.git > root/my-nifty-rails-app > root/a-pile-of-octave-code-and-libraries > root/a-bunch-of-

[capistrano] Re: Run Capistrano script as a Perforce After-Commit Trigger (problems)

2009-06-17 Thread Rafael G.
What happen if you add exit 0 to the script update-staging.sh? Jamis Buck said some time ago for the question: get the return code from "run"? Not quite that easy, unfortunately, but you could do something like this: return_code = nil run "something; echo return code: $?" do |channel,

[capistrano] Re: newbie delpoy:cold problem

2009-06-04 Thread Rafael G.
If you read the mail from Jamis Buck on date 22-08-2007 with subject "[Capistrano] Re: deploy:cold errors while deploy:check is fine", Jamis said: Looks like you've got an older version of subversion installed locally. You need one recent enough that it allows the -r switch on the info command.

[Capistrano] Re: Rimuhost example?

2009-05-20 Thread Rafael G.
mksys wrote: > Probably nothing, but as I am having trouble getting it to all to > work, I thought someone might have a good example as a starting point > to go from... > Put your deploy.rb in gist (or similiar service like pastie) to see it, we try to help you with it. Regards -- Rafa --~

[Capistrano] Re: Deploy from Git without a hard reset?

2009-05-12 Thread Rafael G.
Neil wrote: > I've an issue at the moment where we are running a CMS within a site > (browsercms) that let's the user upload files. However, every time I > do a deploy Capistrano runs a hard reset thus nuking any uploaded > files. > > Does anyone have any suggestions as to how to prevent the hard

[Capistrano] Re: ssh deadlocks

2009-05-05 Thread Rafael G.
mzorova wrote: > I am using the latest versions of capistrano (2.5.5), net-ssh (2.0.11) > and net-ssh-gateway (1.0.1).. When I have more than ten operations as > part of one command, via a gateway, the ssh operations stop with > deadlocks. > > I noticed that the synchronous_connect was taken out -

[Capistrano] Re: Using Capistrano to Perform SQL operations

2009-05-05 Thread Rafael G.
liquid_rails wrote: > Do Capistrano and Phusion's Passenger do the same thing? > > No, Passenger(aka mod_rails) is an apache/nginx module to execute ror applications. It simplify the deployment because you don't need to configure a proxy between apache/nginx + mongrel (or the stack that you

  1   2   >