Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #4045 (closed enhancement: fixed)

Opened 3 years ago

Last modified 1 year ago

[PATCH] Make rails root absolute

Reported by: Dee.Zsombor@gmail.com Assigned to: technoweenie@gmail.com
Priority: normal Milestone: 1.x
Component: Railties Version:
Severity: normal Keywords: rails_root symlink expand_path pathname
Cc:

Description

Needed for class loading in a daemon processes, since these courteously switch to '/'.

Attachments

make_rails_root_absolute.diff (440 bytes) - added by Dee.Zsombor@gmail.com on 03/02/06 12:25:03.

Change History

03/02/06 12:25:03 changed by Dee.Zsombor@gmail.com

  • attachment make_rails_root_absolute.diff added.

03/02/06 13:36:49 changed by rick

It used to be that way, but a change was made to allow for symlinked public directories: [208]

03/02/06 15:55:43 changed by Dee.Zsombor@gmail.com

I dont quite follow. How would have failed for symlinks?

debian:/home/app/current# ls -l log
total 1
lrwxrwxrwx  1 app app   20 2006-03-01 23:02 log -> /home/app/shared/log
debian:/home/app/current# script/console production
Loading production environment.
>> File.expand_path('log')
=> "/home/app/releases/20060302101456/log"

Also aren't public directories (symlinked or not) go bellow RAILS_ROOT? Am I missing something fundamental here?

09/03/06 04:05:37 changed by david

  • owner changed from David to technoweenie@gmail.com.

04/22/07 14:10:25 changed by josh

  • status changed from new to closed.
  • resolution set to wontfix.

04/22/07 18:08:49 changed by bitsweat

  • status changed from closed to reopened.
  • resolution deleted.

04/22/07 18:10:04 changed by bitsweat

  • keywords set to rails_root symlink expand_path pathname.
  • status changed from reopened to closed.
  • resolution set to fixed.
  • milestone set to 1.x.

RAILS_ROOT is a full, absolute path on trunk.

04/22/07 19:31:55 changed by zsombor

Thanks.