Capistrano Deployment Issues

In re-launching this site, I decided to use Capistrano to deploy. First off, I wanted to try it out. Second, I wanted to learn how to do proxy balancing with Mongrel and Mongrel_cluster. I followed the nifty instructions by Coda Hale and then hit a few bumps.

On FreeBSD, I had to change a line in the capistrano gem on my workstation because it was not recognizing [[ as test. I changed line 34 of base.rb to

<pre>if test ! -d #{configuration.release_path} ; then</pre>

Also, ensure that your user is part of the wheel group and wheel is allowed in the sudoers file in /usr/local/etc/sudoers

Anyhow. Another thing checked off. Time to move on to the next item on the never ending GSD™ list.

  1. Anna says:

    Thanks for the response. Here are some anwsers: Can you see what rails version you have your development pc? Answer: Rails 2.0.2 (maybe I should upgrade that?) I presume you are using dreamhost as your production environment. Yes! If I understand the problem correctly you should be uninstalling the new rails gems, that you have upgraded, then try to freeze to the specific gem version you want to use in your production environment. How do I uninstall the new rails gems? So when you freeze to the specific version you want, all the necessary files are going to be copied into the vendor/rails directory. That makes sense, mostly. Thanks.

  2. Levita says:

    tommyf,Can you see what rails version you have in your deeonvpmelt pc?I presume you are using dreamhost as your production environment.If I understand the problem correctly you should be uninstalling the new rails gems, that you have upgraded, then try to freeze to the specific gem version you want to use in your production environment.So when you freeze to the specific version you want, all the necessary files are going to be copied into the vendor/rails directory.You should then be able to deploy in dreamhost for your specific rails version you want.

Post a comment

Name or OpenID (required)


(lesstile enabled - surround code blocks with ---)