Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created December 27, 2013 22:37
Show Gist options
  • Save jonleighton/8153629 to your computer and use it in GitHub Desktop.
Save jonleighton/8153629 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
require_relative '../config/boot'
require 'rake'
Rake.application.run
#!/usr/bin/env ruby
unless defined?(Spring)
require "rubygems"
require "bundler"
ENV["GEM_HOME"] = ""
ENV["GEM_PATH"] = Bundler.bundle_path.to_s
Gem.paths = ENV
Gem.try_activate("spring/binstub")
require "spring/binstub"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment