Boot path has already been required, dont need it again

上级 08fd9a64
......@@ -28,19 +28,15 @@
require ENV_PATH
require 'rails/commands/generate'
when 'c', 'console'
require BOOT_PATH
require 'rails/commands/console'
require APP_PATH
Rails::Console.start(Rails::Application)
when 's', 'server'
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands/server'
Dir.chdir(File.expand_path('../..', __FILE__))
Rails::Server.start
when 'dbconsole'
require BOOT_PATH
require 'rails/commands/dbconsole'
require APP_PATH
Rails::DBConsole.start(Rails::Application)
......@@ -57,7 +53,6 @@
require APP_PATH
require 'rails/commands/plugin'
when 'runner'
require BOOT_PATH
require 'rails/commands/runner'
require ENV_PATH
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册