To edit pages or tickets please login with username/password: aaf/aaf

Ticket #223 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

Require config/environment fails

Reported by: aaf Assigned to: jk
Priority: major Milestone: 0.5
Component: 0plugin Version:
Keywords: Cc:

Description

I recently had the script/ferret_server script looking up for /usr/bin/../config/environment, which obviously is wrong.

To patch this I needed to tweak server_manager.rb and change

require(File.join(File.dirname(ENV['_']), '../config/environment'))

to this:

require(ENV['PWD'] + '/config/environment')

ENV['PWD'] always maps to the current path the script is executed from. One can argue but I think this is ok, because we want to start the server from inside the correct path anyways..

Also, I see no sense in using File.join() here, when there are hardcoded /es nontheless..

Would be great if this could be fixed upstream (maybe someone even has a better solution - i don't think this is the best ;)

Change History

08/03/08 11:09:02 changed by jk

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

Please use the --root option of ferret_server to specify the location of your RAILS_ROOT.

To edit pages or tickets please login with username/password: aaf/aaf