I am running Ruby on Rails 3.0.9 in production mode on a remote VPS computer with Ubuntu 10.04 LTS (in development mode I use RoR on MAC OS Snow Leopard), and I would like to know how to manage the following scenario.
I use Apache2 and Phusion Passenger, and I installed Virtual Host somehow:
<VirtualHost *:80> ServerName project_name.com DocumentRoot /srv/www/project_name.com/public <Directory /srv/www/project_name.com/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost>
More, I use the Paperclip gem and, like many people on the Internet using it in production mode, I get the following error when processing (creating) files:
Errno::EACCES (Permission denied - /srv/www/project_name.com/public/images/001): ...
I heard that the solution to avoid such errors is to correctly set the rights to the folder (manually!) - I donβt know if this installation process can be automated ... BTW: is this possible?), But I think that There is a better way to solve this. If so, what can I do?
source share