kode
kode

Reputation: 1078

Proper way to set two Rails applications on same server

I have two (same) applications running on dev.example.com and beta.example.com with different databases. Everything is set to run with passenger using Apache as web server.

What I have done was to copy the code from one directory to the other (myapp_dev and myapp_beta) and everything seems working fine, until I have to migrate a table. I get an error that the data I want to migrate is already migrated. Probably trying to migrate on the same database. Maybe I have to re-configure the way to run the applications, but don't know how and what to do. Any hints are appreciated.

Thanks!

Upvotes: 0

Views: 76

Answers (1)

mschneider
mschneider

Reputation: 726

you can change the used database in config/database.yml

Upvotes: 1

Related Questions