Hi, The correct approach would be to create a simple API for another Heroku app to request the database credentials, as it may indeed change over time.
Instead of reading database.yml, get the database creds from ENV ['DATABASE_URL']. As we do re-scramble the credentials from time to time, it'd be wise to incorporate a way for an app to re-request credentials in case they stop working. /Morten On Nov 27, 2009, at 8:30 AM, Emanuele Tozzato wrote: > I'm aware that database.yml is generated by the deployment script, but > I need to share some models between two applications. Can I read the > generated database.yml and use it or is it going to change over time? > > -- > Emanuele Tozzato > http://hi.im/mek > > > -- > > You received this message because you are subscribed to the Google > Groups "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en > . > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.