Boot path has already been required, dont need it again

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