Forum: Ruby on Rails RewriteBase w/ Capistrano on a shared host

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67a4711371c9a31783d353be843bbf3a?d=identicon&s=25 Chuck Bergeron (cbergy)
on 2006-06-09 22:37
Hello,

I'm on a shared hosting, and tried this as a test:
[code]
svn co {repo} to /home/{user}/{appname}
ln -s {appname}/public/ public_html
chmod -R 755 trunk
[/code]

With the .htaccess file's RewriteBase directive set to /
This setup works great, with no problems at all.

Here's my issue, I'm attempting to use Capistrano, which is setup by
default to  checkout my app into a releases/{datetime} folder, then it
creates a symlink inside my rails app directory named 'current' which
points to the this new releases/{datetime} dir, like so:

ln -nfs /home/{user}/{appname}/releases/20060609173235
/home/{user}/{appname}/current

I then point public_html to {appname}/current/public/

I'm wondering if there's a certain RewriteBase parameter, or Alias, or
something to let Apache know how to properly follow the symlinks.

I know this is tricky to ask for support for, since each hosting
environments is different. Any ideas would be appreciated, thanks!
67a4711371c9a31783d353be843bbf3a?d=identicon&s=25 Chuck Bergeron (cbergy)
on 2006-06-09 23:53
I figured it out. Apparently, my shared host prefers relative symlinks
to absolute.

Thanks anyhow!
This topic is locked and can not be replied to.