Created
December 27, 2013 22:37
-
-
Save jonleighton/8153629 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
begin | |
load File.expand_path("../spring", __FILE__) | |
rescue LoadError | |
end | |
require_relative '../config/boot' | |
require 'rake' | |
Rake.application.run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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