0
從這個頁面看,Heroku在構建部署中的database.yml
文件時完成了大部分工作,這意味着我必須擁有的是我的development
和test
環境配置。使用Heroku設置連接池(和其他數據庫選項)
有沒有辦法我也可以指定production
值?例如,如果我想在production
上設置pool: 25
,我可以如下所示在我的database.yml
中包含該值嗎?
development: &default
adapter: postgresql
database: my_app_development
encoding: utf8
host: localhost
min_messages: warning
pool: 2
timeout: 5000
test:
<<: *default
database: my_app_test
-- Can I add this, or will it get overwritten?
production:
<<: *default
pool: 25