2014-07-17 23:52:07 +08:00
|
|
|
#!/usr/bin/env ruby
|
2021-03-30 06:12:42 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-07-17 23:52:07 +08:00
|
|
|
begin
|
2023-04-05 06:26:44 +08:00
|
|
|
load File.expand_path("spring", __dir__)
|
2014-07-17 23:52:07 +08:00
|
|
|
rescue LoadError
|
2023-04-05 06:26:44 +08:00
|
|
|
nil
|
2014-07-17 23:52:07 +08:00
|
|
|
end
|
|
|
|
|
2021-03-02 03:52:29 +08:00
|
|
|
# added by instructure:
|
|
|
|
# resolve any symlinks in the file path, to avoid double-require issues
|
2023-04-05 06:26:44 +08:00
|
|
|
require "pathname"
|
2021-03-02 03:52:29 +08:00
|
|
|
expanded_path = Pathname.new(__FILE__).realpath
|
|
|
|
|
2023-04-05 06:26:44 +08:00
|
|
|
APP_PATH = File.expand_path("../../config/application", expanded_path)
|
|
|
|
require_relative "../config/boot"
|
|
|
|
require "rails/commands"
|