debian-mirror-gitlab/bin/rails

15 lines
370 B
Plaintext
Raw Normal View History

2014-09-02 18:07:02 +05:30
#!/usr/bin/env ruby
2018-05-09 12:01:36 +05:30
# Remove this block when upgraded to rails 5.0.
2019-01-03 12:48:30 +05:30
unless %w[1 true].include?(ENV["RAILS5"])
2018-05-09 12:01:36 +05:30
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
2016-06-02 11:05:42 +05:30
end
2018-05-09 12:01:36 +05:30
APP_PATH = File.expand_path('../config/application', __dir__)
2014-09-02 18:07:02 +05:30
require_relative '../config/boot'
require 'rails/commands'