编译 CSS 资源时出错
我一直在尝试在 CentOS 6 上部署 Rail 3.1.1 应用程序
这是我收到的错误
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 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上有两个问题。首先权限是错误的。其次,就像 Nerian 所说,你必须清除 tmp 文件夹。
设置正确的权限
清除临时文件夹
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
To clear you tmp folder
如果您使用 Apache 服务器,您只需确保 apache 帐户 www-data 可以在目录中执行。
If you are using an Apache server you simply need to make sure the apache account www-data can make executions in the directory.