我正在尝试将 db2
数据库迁移到 Ruby on Rails,但是当我运行 rails g scaffold
时,我得到了这个:
Rails 错误:无法访问日志文件。请确保/home/.../log/development.log 存在并且是 chmod 0666。日志级别已提高到 WARN,输出定向到 STDERR,直到问题得到解决。
我检查过,我的 development.log
不存在!我不确定为什么,因为我在安装过程中遵循了每一步,但我的文件仍然不存在。我怎样才能创建它?我已经尝试卸载并重新安装 Rails,但问题仍然存在。
最佳答案
也许只做它要求你做的事?:
$ touch the_required_path/development.log
$ chmod 0666 the_required_path/development.log
关于ruby-on-rails - Rails 错误 : Unable to access log file. 请确保/home.../log/development.log 存在并且是 chmod 0666,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20319355/