Bradley, thanks for the example. A new day and a new look at my code relvealed that I was using deploy_to before setting it...<br><br>works like a charm now ..<br><br><br><div><span class="gmail_quote">On 5/5/06, <b class="gmail_sendername">
bradley taylor</b> <<a href="mailto:bradley@railsmachine.com">bradley@railsmachine.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Roberto:<br><br>><br>> Bradley, can you show a simple, but working example of what needs<br>> to be configured at the develpment machine and what needs to be<br>> done at the production machine (if anything at all) ? Then I
<br>> hopefullyI can figure out what I am doing wrong.<br><br>***deploy.rb***<br><br>require 'mongrel_cluster/recipes'<br><br>role :web, "<a href="http://10.0.1.5">10.0.1.5</a>"<br>role :app, "<a href="http://10.0.1.5">
10.0.1.5</a>"<br>role :db, "<a href="http://10.0.1.5">10.0.1.5</a>", :primary => true<br><br>set :application, "animal_shelter"<br><br>set :deploy_to, "/var/apps/#{application}" # /var/apps/ is owned by
<br>deploy<br>set :user, "deploy"<br>set :repository, "your_repository_here"<br>set :use_sudo, false<br><br>*** server ***<br>No configuration needed.<br><br>*** dev machine ***<br>First deployment:<br>
cap -a setup<br>cap -a configure_mongrel_cluster<br>cap -a cold_deploy<br><br>Subsequent deployments:<br>svn commit -m "more software"<br>cap -a deploy<br><br><br>> ok, I uninstalled 0.1 to make absolutely sure that
0.1.1 is running<br>> and did all configuration steps again and now it even got worse:<br>> after deploying the "current" symlink points to a nonexistent<br>> "config".<br>><br><br>By default the config file is written to deploy_to/config. It looks
<br>like your deploy_to variable contains "current" as<br>configure_mongrel_cluster writes to deploy_to/config/<br>mongrel_cluster.yml. deploy_to should be the root directory of your<br>deployment.<br><br>Feel free to send me a censored version of your
deploy.rb and I'll<br>talk a look for anything unusual.<br><br>Thanks,<br>Bradley<br><br>------<br>Rails Machine<br>Simplified Ruby on Rails application deployment<br><a href="http://railsmachine.com">http://railsmachine.com
</a><br><br><br><br><br>_______________________________________________<br>Mongrel-users mailing list<br><a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/mongrel-users">
http://rubyforge.org/mailman/listinfo/mongrel-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Roberto Saccon