We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
decidim-cfj/config/database.yml
default: &default adapter: postgresql encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> host: <%= ENV.fetch("DATABASE_HOST") { "localhost" } %> port: <%= ENV.fetch("DATABASE_PORT") { "5432" } %> username: <%= ENV.fetch("DATABASE_USERNAME") { "" } %> password: <%= ENV.fetch("DATABASE_PASSWORD") { "" } %> development: <<: *default database: <%= ENV.fetch("DATABASE_DBNAME_DEV") { "decidim-app_development" } %>
Productionでは RDS_DB_* を参照しています。 decidim-cfj/config/database.yml
RDS_DB_*
production: <<: *default adapter: postgresql encoding: unicode database: <%= ENV['RDS_DB_NAME'] %> username: <%= ENV['RDS_USERNAME'] %> password: <%= ENV['RDS_PASSWORD'] %> host: <%= ENV['RDS_HOSTNAME'] %> port: <%= ENV['RDS_PORT'] %>
ECSでDB接続に失敗している箇所のログです。
database.yml
が良いかと思いました。
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
改善詳細 / Details of Improvement
該当箇所
decidim-cfj/config/database.yml
Productionでは
RDS_DB_*
を参照しています。decidim-cfj/config/database.yml
スクリーンショットなど / Screenshot
ECSでDB接続に失敗している箇所のログです。
期待する見せ方・挙動 / Expected behavior
改善案
database.yml
の修正方法を記載が良いかと思いました。
The text was updated successfully, but these errors were encountered: