Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error setting up the database with the custom build #13

Open
AlexCppns opened this issue Jan 31, 2016 · 2 comments
Open

Error setting up the database with the custom build #13

AlexCppns opened this issue Jan 31, 2016 · 2 comments

Comments

@AlexCppns
Copy link

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

@mutantkeyboard
Copy link
Contributor

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

@BandanaPandey
Copy link

BandanaPandey commented Aug 30, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants