Welcome Guest | Login

deploying multiple rails-apps -- caveat capistrano

Have been following the tutorial to add another test-app under my production rails-app.
http://www.hostingrails.com/forums/wiki_thread/6

The problem comes to when I want to redirect an addon-domain or a subdomain to the public-folder of my production app. Since I use Capistrano, the full path to the app changes each time I do "cap deploy", since it makes a new revision. The path to the current /public for 43actions.com looks like /home/actions/apps/fortythree/releases/2007231232/public.

There is of course a symlink from fortythree/current to the current revision, but when I tried adding the subdomain (betaflickr.43actions.com) it didn't use the symlinked domain but rather the full releases/200....etc, path.

How can I overcome this problem?

2007-07-25 02:53 PM

oskarlissheimboethius.com
You can do one of three things:

1) Incorporate the symlink update in your deploy.rb file.
2) Ask support to change your main app's DocumentRoot to something other than ~/public_html so the symlinks don't get blown way.
3) Don't use capistrano - after a commit just SSH into the server and 'svn update' and restart your app.  


2007-07-25 03:09 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.