Rails + Passenger CSS problem
- by Dan
I'm trying to deploy my first Rails app.
At first, I was getting the following error:
ActionView::TemplateError (Permission denied)
I set the permissions of the stylesheets folder to 777 (just for now until I work out what's going wrong) and the application started to work. However, it is not picking up any of the stylesheets (everything is displayed in plain text). If I view the source code and click the CSS links, I just get a blank page.
Javascripts however, seem to be working just fine.
VHost Config:
<VirtualHost *:80>
ServerName xxxx.xxx.com
DocumentRoot /home/myapp/public
<Directory /home/myapp/public>
Allow from All
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
Can anyone help?
Any advice appreciated.
Thanks.