Multiple apps - one database.yml?

Is is possible to have multiple apps whose root directories are in the
same directory that can share a single database.yml file?

(Sorry) that should say "rails apps"

Rick wrote:

Is is possible to have multiple apps whose root directories are in the
same directory that can share a single database.yml file?

Well, there's always the symlink or hard link. No sense putting into the language/framework what's better kept in the filesystem.

-- Jon

Create separate directories for your separate Rails projects.

Then (assuming you're keeping your projects in Subversion) use
Subversions "externals" as described here:
http://svnbook.red-bean.com/en/1.1/ch07s04.html

cd /home/you/project2/
svn propset svn:externals "http://svn.yoursite.com/project1/trunk/models" models
svn propset svn:externals "http://svn.yoursite.com/project1/trunk/config" config

Now project2 will use the config and models from project1.

We're doing this in a few different projects : 3 separate Rails
projects, all sharing the same models and database-config.

Any time you make changes to "project1", then next time you do an svn
update on project2 it will update.

ยทยทยท

On 10/21/05, Rick <willirl@gmail.com> wrote:

Is is possible to have multiple apps whose root directories are in the
same directory that can share a single database.yml file?