简体   繁体   中英

Error Compiling CSS Asset

I have been trying to deploy a Rail 3.1.1 app on CentOS 6

This is the error I am getting

Error Compiling CSS
Errno::ENOENT: No Such File or Directory - /var/www/vhosts/MySite/MyAPP/tmp/cache/assets/sprockets%t43t34t34t...t34t-r32r-r23.lock

/usr/local/lib/ruby/1.9.1/tempfile.rb:343:in 'rmdir'

I appreciate the help.

There were actually 2 problems. First the permissions were wrong. and secondly like Nerian said, you have to clear your tmp folder.

To set the correct permissions

chown apache.root yourapp -R
chmod 755 yourapp -R

To clear you tmp folder

rake tmp:pids:clear             
rake tmp:sessions:clear
rake tmp:sockets:clear
rake tmp:cache:clear

If you are using an Apache server you simply need to make sure the apache account www-data can make executions in the directory.

chown -R www-data:www-data .
service apache2 reload

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM