rails-devise icon indicating copy to clipboard operation
rails-devise copied to clipboard

Error setting up the database with the custom build

Open AlexCppns opened this issue 9 years ago • 2 comments

I am getting the following error when I try to run the custom rails configuration script. When it reads the database.yml:

YAML syntax error occurred while parsing /home/vagrant/demo/rails-devise/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): found undefined tag handle while parsing a node at line 22 column 13

AlexCppns avatar Jan 31 '16 21:01 AlexCppns

It would be obvious to read the error. You can not use TAB key inside the YAML file. Use 4 spaces instead. I prefer Brackets for this, and you can always find a good tutorials on sites such as StackOverflow -> http://stackoverflow.com/questions/22540956/adobe-brackets-write-spaces-instead-of-tabs

mutantkeyboard avatar Aug 30 '16 11:08 mutantkeyboard

According to me, you have tabs instead of spaces in your database.yml. This error seems pretty straightforward "Please note that YAML must be consistently indented using spaces. Tabs are not allowed." database.yml file probably contains some tabs. So make sure that you are using spaces, not tabs also you can validate your YML with a linter like this: yamllint.com Hope this works for you.

BandanaPandey avatar Aug 30 '16 20:08 BandanaPandey