webpacker:installing errors in rails

Asked 1 years ago, Updated 1 years ago, 42 views

I am currently trying to publish an app that I made my own development environment with docker-compose, but when I did docker-compose up, they said "no such file please webpacker:install", so I got the following error:

 Rails couldn't refer to you when you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases.If you'd like to use this feature, please simplify your ERB.
Rails couldn't interface between you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases.If you'd like to use this feature, please simplify your ERB.
rails aborted!
Cannot load database configuration:
YAML syntax error occurred while parsing / Users / hiratashinichi / rails / config / database.yml. Please note that YAML must be consistently used spaces.Tabs are not allowed.Error: (<unknown>):coupled thinking 18's not possible

What I looked up and tried was to align the indentation in database.yml, but the same error did not change.
Another thing that bothered me was that it was written that the yml should be converted from space to tab, so if anyone knows anything about this error, could you please let me know?

ruby-on-rails docker

2022-09-30 13:52

1 Answers

Reading the error, it seems that the problem is that the config/database.yml indentation has tabs.YAML does not seem to allow tab indentation.
 The third column in the 18th row looks like a tab, so try replacing it with a space.


2022-09-30 13:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.