我正在使用Cloud66,并试图从我的git存储库中设置一个堆栈。然而,Cloud66返回错误:
Analysis error: The space character ‘ ’ is not allowed in your database username or password in your config/database.yml file - please remove this character and try again. 造成这一错误的原因是什么?
在我的Rails应用程序中的database.yml中,如下所示:
default: &default
adapter: postgresql
encoding: unicode
host: 0.0.0.0
pool: 5
username: <%= Rails.application.secrets.POSTGRES_USERNAME %>
password: <%= Rails.application.secrets.POSTGRES_PASSWORD %>
development:
<<: *default
database: app_development
test:
<<: *default
database: app_test
production:
<<: *default
database: app_productionsecrets.yml中的用户名和密码只包含字母和数字。是什么导致了这个错误?
发布于 2016-01-20 09:40:06
看看这个:http://community.cloud66.com/articles/sharing-a-database-between-stacks
您应该将以下行更改为:
username: "<%= ENV['POSTGRESQL_USERNAME']%>"
password: "<%= ENV['POSTGRESQL_PASSWORD']%>"https://serverfault.com/questions/750250
复制相似问题