Topic: Deploying using capistrano

Hi,

I'm having a deployment issue when I try to deploy using capistrano, I'm getting the following output below; my command prompt just pauses at that point. It seems to be looking for my username for subversion repository, however, I'm unable to type anything in. Before this point I've been asked for my password for the repository twice which was successful.

The setup went fine i.e. when I ran rake setup, everything ran without any errors.



My developmenet environment in win xp & i'm deploying to dreamhost.


** [out :: myrailsdomain.com] Authentication realm: <http://www.svn.mysvn.com:80> myrailsdomain
** [out :: myrailsdomain.com] Username:

Has anybody else come across this or has success with deploying using capistrano?

Q

Re: Deploying using capistrano

I don't know what t he problem could be, but these might help:

http://docs.planetargon.com/wiki/show/U … ANET+ARGON
http://casperfabricius.com/blog/2006/05 … dreamhost/
http://lists.rubyonrails.org/pipermail/ … 26454.html

Railscasts - Free Ruby on Rails Screencasts

Re: Deploying using capistrano

You have to define the svn username and password in your deploy file.  A quick google will turn up the results.

Re: Deploying using capistrano

Thanks for that, I had the wrong user listed for svn user,

I'm now getting this:


sudo /home/"username"/web.sit.com/current/script/process/reaper


"username" is not in the sudoers file.

the "username" does exist and is the admin of the site so the script
should have no problem doing its deployment thing, right?

Last edited by qrail (2006-07-17 11:19:33)

Re: Deploying using capistrano

You should either configure cap to not use sudo, or setup your sudoers file to allow that user to sudo.

Re: Deploying using capistrano

How do you do both/either?

Last edited by qrail (2006-07-18 12:07:52)

Re: Deploying using capistrano

If you have sudo on your machine you want to just edit you /etc/sudoers file, I can't remember the exact syntax, but you could find it with a quick google.  The capistrano manual also tells how to not use sudo in a recipie

Re: Deploying using capistrano

So I set sudo to be false in deploy.rb which fixed the 'sudo' issue

and now I'm getting this error when deploy tries to start the fcgi process:

Couldn't find any process matching: dispatch.fcgi

any ideas on how I might fix this?


here's the output I'm getting


  * executing "chmod a+x /home/myuser/mydomain.com/current/public/
dispatch.fcgi"
    servers: ["passes.qhcconsulting.com"]
    [passes.qhcconsulting.com] executing command
    command finished
** transaction: commit
  * executing task restart
  * executing "ruby /home/myuser/mydomain.com/current/script/proce
ss/reaper --dispatcher=dispatch.fcgi"
    servers: ["mydomain.com"]
    [mydomain.com] executing command
** [out :: mydomain.com] Couldn't find any process matching: dispatch.fcgi
    command finished

Last edited by qrail (2006-07-29 10:42:47)