Skip to content

Instantly share code, notes, and snippets.

@bbonamin
Created March 15, 2012 14:06
Show Gist options
  • Select an option

  • Save bbonamin/2044357 to your computer and use it in GitHub Desktop.

Select an option

Save bbonamin/2044357 to your computer and use it in GitHub Desktop.
How to get a Rails app running on Windows

#How to get a Ruby on Rails application running on Windows

Download a install RailsInstaller

  1. Go to http://railsinstaller.org/
  2. Download the installer corresponding to the version you are trying to install (http://rubyforge.org/frs/download.php/75894/railsinstaller-2.1.0.exe)
  3. Install the exe.

Install the application's dependencies

  1. Cd to the application directory in the command line.
  2. Type bundle install and all dependencies will be installed.

Create the database

  1. Make sure that the yml file config/database.yml contains information valid for your environment (otherwise, change it to use your desired dbms)
  2. Run from the application directory the commands rake db:create and rake db:migrate. This will create the database structure.

Run the development server

  1. Run from the application directory the command rails server, and WEBRick will boot up a local environment which can be accessed at the url http://localhost:3000 by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment