Project

General

Profile

Actions

Patch #1892

closed

Patch boot.rb to allow for symlinks in RAILS_ROOT

Added by Richard Hurt over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2008-09-12
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

The .../config/boot.rb file that ships with Redmine does not work well with symlinked directories. Specifically, during packaging for Debian I needed to replace .../vendors/rails with the Debian equivalent. Symlinking .../vendor/rails -> /usr/share/rails broke Redmine so that it wouldn't find the Rails install at all.

The attached patch uses the expand_path() function on the File object to pre-expand the symlinks so they don't cause problems later. This shouldn't affect anything else although I have only tested it on Debian Lenny, not Windows or any other flavor of Unix. If there is a better way to do this then please let me know and I'll update my package.

Thanx!
Richard


Files

boot.rb.patch (353 Bytes) boot.rb.patch Richard Hurt, 2008-09-12 21:38
Actions

Also available in: Atom PDF