加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Cap部署不会创建共享/日志文件夹

发布时间:2020-12-16 22:29:21 所属栏目:百科 来源:网络整理
导读:当我运行我的帽子部署时,它抱怨说它无法访问日志文件: Rails Error: Unable to access log file. Please ensure that /var/superduperapp/releases/20120329011558/log/production.log exists and is chmod 0666. The log level has been raised to WARN an
当我运行我的帽子部署时,它抱怨说它无法访问日志文件:

Rails Error: Unable to access log file. Please ensure that
/var/superduperapp/releases/20120329011558/log/production.log exists
and is chmod 0666. The log level has been raised to WARN and the
output directed to STDERR until the problem is fixed.

看来我必须手动创建一个日志文件夹.有没有办法与Capistrano做这样的,所以无论是部署它不必记住创建文件夹每次他们做新的部署?

解决方法

这些文件夹应该由capistrano创建,当您运行cap deploy:安装程序,你是否运行它?要检查一切是否正常,您可以运行cap部署:检查之前.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读