On Oct 11, 2011, at 9:42 AM, Walter Lee Davis wrote:

> I am running in production on Ubuntu 10 with Passenger and Apache2. I just 
> had to set my system/dragonfly folder to 777 in order to allow uploads to 
> work, and that doesn't seem like a good idea or even necessary. What''s the 
> trick to get this to work correctly (as in not world-writable folders inside 
> the Web root)?
----
generally a passenger/rails application will run as the same user who owns 
RAILS_ROOT/config/environment.rb or in the case of a Rack based application, 
RAILS_ROOT/config.ru but that can be overridden in the apache config 
(passenger_user). As long as this 'user' has write permissions, that should be 
sufficient and should in all likelihood be the same user writing to 
RAILS_ROOT/log/[development|production].log

Craig

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to