Ruby on Rails: A Vista Dev Environment

After my 17″ Mac Book Pro caught fire the other day and then the replacement MacBook broke again, I decided to turn my Lenovo X61 Tablet into a “Ruby on Rails” development environment for TheFunded.com. It is well known that Rails is not optimized for Windows, but I managed to get an impressive system in place.

Here is the infrastructure that I already had in place:

  • Host at Rails Machine on a virtual server that can be easily upgraded as more capacity is needed – http://railsmachine.com/
  • Use Subversion for asset management and version control – http://subversion.tigris.org/
  • Use Capistrano to deploy from a development environment to the servers and restart everything correctly – http://www.capify.org/
    • Capistrano does not work on Windows, unfortunately, so manual server restarts will be required for a Windows deployment.

Here is what I downloaded and added to my Windows Vista machine:

These are the actions that it took to get started:

  • Install all of your new applications and reboot. You need to use a special ZIP utility to unpack Instant Rails and maintain the directory structure, called 7-ziphttp://www.7-zip.org/
  • Launch Instant Rails and pop a ruby command line open using the GUI to “gem update rails –include-dependencies“, bringing your Ruby environment up-to-date.
  • Download and place your project into the “rails_apps” in the Instant Rails folder by right clicking in your Windows environment with the new Tortoise right-click menu options.
  • Edit your project’s database.yml and environment.rb files with any changes using Komodo Edit (you do not have to change the patch to Ruby in dispatch.rb).
    • The default MySQL database in Instant Rails is “localhost” or “127.0.0.1″ with a username of “root” and no password.
  • Download your MySQL database from the server using a tool of your choice and load it into the local MySQL version through the Instant Rails PHPMyAdmin.

You are done! Launch your application in Instant Rails, start editing away with Komodo, preview your changes, and commit your updates with Tortoise!

About admin

Adeo Ressi is Founding Member of TheFunded.com, an online community of 12,000 CEOs to research, rate, and review funding sources worldwide. Adeo also runs the Founder Institute, a mentoring program that helps entrepreneurs launch hundreds of world-class companies each year. The Institute is the eight start-up that Adeo has founded or built, four of which were acquired and three of which are still operating.
This entry was posted in Opinion. Bookmark the permalink.

One Response to Ruby on Rails: A Vista Dev Environment

  1. Matt Roberts says:

    Interesting post. I switch between Vista and Ubuntu for rails dev. My biggest gripe in vista is the sheer slowness of Ruby, but maybe thats just my PC :)

    Not heard of Komodo before – is it really that good? I use e-texteditor and also NetBeans (depending on my mood) – both alright, but neither are really great.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>