5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 00:26:22 +00:00
panel/bin/spring
2020-12-24 15:02:03 -03:00

11 lines
438 B
Ruby
Executable file

#!/usr/bin/env ruby
# frozen_string_literal: true
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
# Load Spring without loading other gems in the Gemfile, for speed.
require "bundler"
Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring|
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem "spring", spring.version
require "spring/binstub"
end
end