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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -