I have a really strange issue. I'm trying to deploy my app to a vps. After creating a database for it, when I'm trying to migrate my db I get this error:
YAML syntax error occurred while parsing /root/projects/bbla/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): found a tab character that violate intendation while scanning a plain scalar at line 15 column 13
/root/projects/bbla/config/environment.rb:5:in `<top (required)>'
Psych::SyntaxError: (<unknown>): found a tab character that violate intendation while scanning a plain scalar at line 15 column 13
/root/projects/bbla/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
And here is my database.yml:
development:
adapter: sqlite3
database: db/development.sqlite3
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: postgresql
database: bbla
host: localhost
password: secret
I've already spent several hours trying to figure it out, but still no luck! Maybe someone can see the problem.
I've already checked my code in online yml validator, and it says it's ok.
Many thanks in advance!
UPDATE Solved by Arup Rakshit! That was a strange glitch (bad invisible characters probably). Helped to delete the database.yml and create it again, no copy/past.