Ruby on Rails
Sunday, January 4, 2015
Hi Folks,
I am working to deploy a Ruby on Rails application on Apache. I've built the mod_passenger tarball and copied it to /usr/lib64/httpd/modules/mod_passenger. I've verified that ownership is root:root, and permissions are 755, and there is an appropriate selinux context. So that is all good.
When I goto the root URL, http://todo.tryx.org/, I don't get the result of having run ruby, I get a static page of .../public/dispatch.fcgi, which looks like this:
#!/usr/bin/env ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
# and the number of requests to process before running garbage collection.
#
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
# and the GC period is nil (turned off). A reasonable number of requests
# could range from 10-100 depending on the memory footprint of your app.
#
# Example:
# # Default log path, normal GC behavior.
# RailsFCGIHandler.process!
#
# # Default log path, 50 requests between GC.
# RailsFCGIHandler.process! nil, 50
#
# # Custom log path, normal GC behavior.
# RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
#
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'
I have apparently not configured things quite properly. Any advice?
Thanks for the help,
Chris.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/90983bb3-0c4d-4ada-b62d-953a6e9ca5f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment