编译 CSS 资源时出错

发布于 2025-01-04 21:10:11 字数 309 浏览 3 评论 0原文

我一直在尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

丘比特射中我 2025-01-11 21:10:11

实际上有两个问题。首先权限是错误的。其次,就像 Nerian 所说,你必须清除 tmp 文件夹。

设置正确的权限

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

清除临时文件夹

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

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
瞳孔里扚悲伤 2025-01-11 21:10:11

如果您使用 Apache 服务器,您只需确保 apache 帐户 www-data 可以在目录中执行。

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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文