PDA

View Full Version : Deploy rails app using SSH/PuTTY/Pageant, SVN, MySQL, Capistrano, Mongrel, nginx - 4


Larry
03-22-2008, 06:19 PM
It Won't Be Long Now
That's it. Unbelievable, isn't it? The sample app is working. Have another beer and a shot of something strong - I recommend a good Irish whiskey.

Now you need to switch over to your real application. To do this, start at the top and go through it all the steps again, substituting "your_real_app" for "sample". Sometimes it will be a string in a script, other times a file or directory name. Regardless, just proceed slowly and carefully and you should be okay.

One potential gotcha: The point where you create symlink file "/etc/mongrel_cluster/your_real_app.yml". The steps are the same, but you need to remember to delete the "sample.yml" file from that directory. If mongrel sees that it will assign port 8000 to the sample app, which means the request for that port from your real app will be denied, which means you'll go throught this whole process only to see the sample app instead of your real one. (If you want to keep the sample app around, assign it to a different port number and change /usr/local/nginx/conf/nginx.conf appropriately.)