[Rails] Re: Unable to set up Rails app by Apache on Mac OS X 10.9.3


Yes! passenger will start up according to the ownership of config.ru file (>rails 3, or environment.rb for rails 1 & 2)
and has issue if it is owned by "nobody". I change ownership of config.ru file and it works now. Thanks a lot
for your help! Now I can host single rails app, will need to figure out how to set up multiple rails apps by sub URI.

Best,
Liz

On Wednesday, July 2, 2014 8:16:25 AM UTC-4, Jim wrote:
On Tuesday, July 1, 2014 11:55:43 AM UTC-4, Liz Huang wrote:

the error I got now seem to be something different...

integer 4294967294 too big to convert to `int' (RangeError)    /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:724:in `chown'  ...

Who is the owner of your rails app?  Passenger will run your app as the user set as the owner of the rails root (or maybe the environment file, not sure).  For development, I just set myself as the owner.  For deployment, you may want to set up an unprivileged user to own the rails app, but apparently Passenger has issues if the "nobody" user owns the app.

Jim
 

--
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/8d62c500-141f-4312-889f-4012e0ae795e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.