Are you setting :mongrel_conf at the very top of your file, before  
you set :deploy_to and :application? If so, move it below those, so  
that they can be set before you reference #{current_path}.

- Jamis

On Dec 4, 2006, at 8:14 AM, itchyboy wrote:

>
> I'm new to Capistrano, so I've mucked around with this after my
> original setup and cold_deploy, but I feel like I'm getting  
> close ... .
> I'm using 'mongrel_cluster/recipes' as noted in the new Agile
> Development book (and codahale.com, etc.), so my deploy.rb includes:
>
> require 'mongrel_cluster/recipes'
> set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"
>
> After fixing issues with my local and remote users and my sudo and a
> bunch of other things, I decided I'd better do a cold_deploy again  
> (not
> sure if that creates problems given my app already has been deployed).
>
> So with cap cold_deploy, I'm getting hung up on restart because of a
> 'Configuration file does not exist.'
>
> Partial output:
> ------
>   * executing "ln -nfs /var/www/apps/central/releases/20061204142806
> /var/www/apps/central/current"
>     servers: ["central.casehandler.com"]
>     [central.casehandler.com] executing command
>     command finished
>  ** transaction: commit
>   * executing task restart
>   * executing task restart_mongrel_cluster
>   * executing "sudo mongrel_rails cluster::restart -C
> /u/apps/current/config/mongrel_cluster.yml"
>     servers: ["central.casehandler.com"]
>     [central.casehandler.com] executing command
>  ** [out :: central.casehandler.com] !!! Configuration file does not
> exist. Run mongrel_rails cluster::configure.
> ------
>
> Is there a reason why the restart script is looking for
> /u/apps/current/config/mongrel_cluster.yml instead of in
> /var/www/apps/central/current? Was it linked? Do I need to do  
> something
> different in my deploy.rb file?
>
> Also, does cap cold_deploy break anything when I re-run it?
>
> Thanks for any help.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to