mdsol / dice_bag

DiceBag is a library of rake tasks for configuring web apps in the style of The Twelve-Factor App.
MIT License
19 stars 4 forks source link

Postgres support: Detect pg gem and generate database.yml.dice #86

Closed piao-mdsol closed 6 years ago

piao-mdsol commented 6 years ago

Background

rake config:generate_all only generates the database.yml.dice template file when using MySQL, it doesn't support Postgres in the same manner. We'd need to manually copy & paste the template file and update its configuration for Postgres.

With this PR, dice_bag will detect pg gem and generate the template file accordingly.

Changes

@mdsol/team-10