debian-mirror-gitlab/bin/rails

15 lines
370 B
Text
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.
unless %w[1 true].include?(ENV["RAILS5"])
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'