At this time sharing a DB between two apps isn't supported, specifically because it can change and we don't hav a way to keep them in sync.
If you're willing to take the chance, the easiest thing to do is simply set the DB_URL config var in your second app to what it's set to in the first app. You'll need to inspect it from within your app to determine it. Set the second app to that, and the database.yml file will be rewritten with the same settings as the first app. Oren 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
