debian-mirror-gitlab/bin/rails

15 lines
367 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.
2018-12-23 12:14:25 +05:30
if %w[0 false].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'