ruby on rails - Using Postgresql with Amazon Opsworks - Getting IP address in database.yml -
i'm trying basic rails app working postgres using amazon opsworks. opsworks lacks built-in support postgres @ moment, i'm using cookbooks i've found seem written. i've forked them custom cookbooks at: https://github.com/tibbon/custom-opsworks-cookbooks
anyway, i'm stuck @ moment getting ip address of master postgres database database.yml file. seems there should multiple back-ends specified, kinda how haproxy server sees rails servers 'backends'.
has gotten working?
i had add custom json rails layer.
looked this:
{ "deploy": { "my-app-name": { "database": { "adapter":"mysql2", "host":"xxx.xx.xxx.xx" } } } }
Comments
Post a Comment