I’ve successfully built a personal project using Rails (I come from
the .NET world), and I’m now looking into deployment. Here’s what I
want to do:
- Store my application in source control (Subversion)
- Whenever I checkin, kick off a continuous build and deployment
process (on the build machine) that will:
- Deploy the MySQL database to the web server (myapp_testing)
- Copy the ruby application files to a virtual directory
(test.myapp.com) so that I can view it online
In the .NET world I would have done this using CruiseControl.NET and
NAnt, running OSQL.exe to deploy the database from a .SQL script file.
Is the process similar for a Rails application, or is there a much
more “rails-y” way to do it?
I notice that the database.yml files point to dev, test and production
databases. But where do you tell the application whether to use
production/test or not?
Also, how do you handle changes between schema versions and deploying
Any ideas would be appreciated - I can always do it the .NET way but
I’d prefer to use a more standard way if I can.