简体   繁体   English

如何使用RUBBER EC2 ruby​​ / rails部署工具指定数据库连接参数?

[英]How do I specify database connection parameters using the RUBBER EC2 ruby / rails deployment tool?

I'm setting up an instance on ec2 using the rubber deployment tool. 我正在使用橡胶部署工具在ec2上设置实例。 I need to determine where I specify the database connection parameters. 我需要确定在哪里指定数据库连接参数。

In the /config/rubber/common/database.yml file, I see this code that is used to create the /config/database.yml file for the instance I'm deploying to: /config/rubber/common/database.yml文件中,我看到此代码用于为要部署到的实例创建/config/database.yml文件:

<%
   @path = "#{RUBBER_ROOT}/config/database.yml"
%>
<%= RUBBER_ENV %>:
  adapter: postgresql
  encoding: unicode
  database: <%= rubber_env.db_name %>
  username: <%= rubber_env.db_user %>
  password: <%= rubber_env.db_pass %>
  host: <%= rubber_instances.for_role('db', 'primary' => true).first.full_name %>
  pool: 5

But there's nowhere I can find where it documents where I should put the values db_name , d_user and db_pass . 但是,在任何地方都找不到可以记录db_named_userdb_pass值的db_pass

这些值在config / rubber / rubber-mysql.yml中设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM