Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created November 20, 2013 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonleighton/7554889 to your computer and use it in GitHub Desktop.
Save jonleighton/7554889 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
if !Process.respond_to?(:fork) || Gem::Specification.find_all_by_name("spring").empty?
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
else
ARGV.unshift "rails"
load Gem.bin_path("spring", "spring")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment