Skip to content

Instantly share code, notes, and snippets.

@nesquena
Created July 19, 2011 20:14
Show Gist options
  • Save nesquena/1093587 to your computer and use it in GitHub Desktop.
Save nesquena/1093587 to your computer and use it in GitHub Desktop.
Speedup Rails Development

RailsDevBoost

Checkout RailsDevBoost:

# Gemfile
gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :require => 'rails_development_boost', :branch => 'rails-2-3'

rails-test-serving

Checkout the rails test server:

$ gem install rails-test-serving

Append to profile:

~/.bash_profile:

export RUBYLIB=".:test:$RUBYLIB"

Insert the following lines at the very top of test helper:

# test/test_helper.rb

require 'rubygems'
require 'rails_test_serving'
RailsTestServing.boot

Enable working with boost:

# config/environments/test.rb

def config.soft_reload() true end if RailsTestServing.active?

Start server:

$ cd <project-dir>
$ ruby test/test_helper.rb --serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment