Error in classic_rails_preloader? no such file to load -- config/environment

15 views
Skip to first unread message

Scott Stambaugh

unread,
May 14, 2013, 3:10:59 PM5/14/13
to phusion-...@googlegroups.com
passenger-4.0.2/helper-scripts/classic-rails-preloader.rb
 
ln 36: require File.expand_path('config/environment')
 
This line assumes that the existing context is the application root.  However, it may not be.  For example if the user's .bashrc changes the directory then this script will fail.
 
Could you add an "app_root_path" variable to ensure the correct path is being used?
 

Hongli Lai

unread,
May 14, 2013, 3:31:31 PM5/14/13
to phusion-passenger
This problem has already been fixed in git and will be part of 4.0.3.


 

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages