I'm getting “found character that cannot start any token while scanning for the next token”

后端 未结 7 1807
無奈伤痛
無奈伤痛 2021-01-07 16:07

I have been running Ruby on Rails on my laptop for about a month now, but when I wanted to run the server in this instance (and it was working fine a few hours ago) I now re

7条回答
  •  长发绾君心
    2021-01-07 17:09

    You should check all important configuration files that contains YAML. I had the same error when tried to rake db:seed, and it turns out that I had TAB character in commented block in config/database.yml.

    If you are not sure, use some online YAML parser, i.e. http://yaml-online-parser.appspot.com/.

提交回复
热议问题