编译CSS资源时出错 [英] Error Compiling CSS Asset
本文介绍了编译CSS资源时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直试图在CentOS 6上部署一个Rail 3.1.1应用程序
这是我得到的错误
错误编译CSS
Errno :: ENOENT:没有这样的文件或目录 - / 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'
$ 解决方案
p>实际上有2个问题。首先权限是错误的。
要设置正确的权限,请清除您的tmp文件夹。 b $ b
chown apache.root yourapp -R
chmod 755 yourapp -R
清除您的tmp文件夹
rake tmp:pids :clear
rake tmp:sessions:clear
rake tmp:sockets:clear
rake tmp:cache:clear
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
这篇关于编译CSS资源时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文