Setting Up Ruby on Rails in a Windows Environment
Added: April 17th, 2008 (tagged with: ruby+on+rails)
At work, we have been running new Ruby on Rails 2.0.x projects on top of Mongrel and SQLite. Being the only developer at my company who had his start on a Windows box, I was tasked with getting a new Web Producer up and running on Rails. From a clean Windows install, setting up the machine took a matter of minutes. And, for documentation purposes, I'll write the steps out here:
- Download and Run the Ruby One-Click Installer
- Grab the SQLite3 command line program and DLL from the SQLite Download page. Unzip into
C:\WINDOWS\system32\ - From the command line run:
gem install mongrel --include-dependencies(choose themswin32option)gem install rails --include-dependenciesgem install sqlite3-ruby(choose themswin32option)
That's it. You can now run rails test to create a test project using SQLite running on top of Mongrel.
As a bonus, these are also helpful to install for Rails development on Windows:
- Tortoise SVN - a subversion client, implemented as a windows shell extension.
- RubyWeaver - a Dreamweaver extension that makes Ruby on Rails development easier on Windows. NOTE: Adobe really needs to integrate better with Rails, support right now is nil.
