I have an issue with Mongrel cluster start-up, when I start the cluster I am getting the following error: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require': no such file to load -- /home/admin/test-project/test-app/config/environment (LoadError)
I am using this command to start the server (as root):
For mongrel set-up I did the following (as root):
I have checked the permissions on the files in the config folder and they are as follows:
Other details:
"mongrel_rails start" works fine.
Any help would be appreciated.
Thank you.
Govind Naroji
Why are you doing cd /config/environment
? You should start your server from the root directory of your application.
I suppose that I was getting this error due to permissions issue. all the files in the app/config folder were owned by mongrel user and I was trying to start it with root user.
I had switched to passenger and I was getting the same issue with passenger. The issue is now resolved - I made the admin user as the owner of all the files in the app and then started the server with user as admin.
We have decided to use passenger instead of mongrel as mongrel_cluster does seem to be broken in 2.3.8 - we are getting an ActionController::InvalidAuthenticityToken error with mongrel which we don't get on passenger or webrick.
So finally its passenger+nginx for us.
Cheers!
Govind Naroji
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.