gitlab-org--gitlab-foss/bin/rails

15 lines
367 B
Plaintext
Raw Normal View History

#!/usr/bin/env ruby
# Remove this block when upgraded to rails 5.0.
2018-11-07 20:09:42 +00:00
if %w[0 false].include?(ENV["RAILS5"])
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
end
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'