Rails Error: Unable to access log file. Please ensure that /home…/log/development.log exists and is chmod 0666

前端 未结 2 1759
后悔当初
后悔当初 2021-01-17 23:48

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

Rails Error: Unable to acces

相关标签:
2条回答
  • 2021-01-18 00:24

    Maybe just do what it asks you to do?:

    $ touch the_required_path/development.log
    $ chmod 0666  the_required_path/development.log
    
    0 讨论(0)
  • 2021-01-18 00:29

    I've always had success with the the log file permissions as 644. When this has happened to me, more than once I might add, it has always been answered by the question linked below. Since this is the first answer in Google for the query I use, I'm linking to the answer that I really want.

    Rails: Unable to access log file

    0 讨论(0)
提交回复
热议问题