Rails错误:无法访问日志文件。请确保/home.../log/development.log存在并且为chmod 0666 [英] Rails Error: Unable to access log file. Please ensure that /home.../log/development.log exists and is chmod 0666

查看:83
本文介绍了Rails错误:无法访问日志文件。请确保/home.../log/development.log存在并且为chmod 0666的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 db2 数据库迁移到Ruby on Rails,但是仅当我运行 rails g支架时,我得到这个:

Im trying to migrate a db2 database to Ruby on Rails, but just when I run rails g scaffold, I get this:

Rails错误:无法访问日志文件。请确保/home/.../log/development.log存在,并且为chmod0666。日志级别已提高至WARN,输出已定向至STDERR,直到问题解决。

我已检查并且我的 development.log 不存在!我不确定为什么,因为我在安装过程中遵循了所有步骤,但是我的文件仍然不存在。如何创建它?我已经尝试过再次卸载并安装Rails,但是问题仍然存在。

I have checked and my development.log does not exist! I'm not sure why, since I followed every step during the installation, but still my file doesn't exist. How can I create it? I have already tried uninstalling and installing Rails again, but the problem remains.

推荐答案

也许只是按照它的要求去做? :

Maybe just do what it asks you to do?:

$ touch the_required_path/development.log
$ chmod 0666  the_required_path/development.log

这篇关于Rails错误:无法访问日志文件。请确保/home.../log/development.log存在并且为chmod 0666的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆