summaryrefslogtreecommitdiff
path: root/bin/rails
blob: 228f812ccaf658a031037900241e68b3c55f6435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

# 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
end

APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'