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
them?
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.
Paul
There is a method to change which environment.
Cheers,
Zach Inglis
→ Blog -- http://www.zachinglis.com
→ Company -- http://www.lt3media.com
→ Portfolio -- http://portfolio.zachinglis.com
Michael
On Jun 10, 7:44 am, "paul.stov...@readify.net" <stov...@gmail.com>
wrote:
Regards,
Chris Matthieu
http://www.rubyology.com
Check out Rubyology's podcast #5 ( http://rubyology.com/podcasts/show/
11) for Rails deployment strategies and tips on Subversion,
Capistrano, and Secure Shell
Regards,
Chris Matthieu
http://www.rubyology.com
Apache + Mongrel. Helper tools: Mongrel Cluster and Capistrano. I used
Coda Hales walkthrough to get started, it's a pretty good end to end
description:
Notice, there's a rails-deployment group where all the experts are
hanging out ;-)
--
Cheers,
- Jacob Atzen