Fix rails server

上级 7840ea29
......@@ -3,6 +3,7 @@
ENV_PATH = File.expand_path('../../config/environment', __FILE__)
BOOT_PATH = File.expand_path('../../config/boot', __FILE__)
APP_PATH = File.expand_path('../../config/application', __FILE__)
ROOT_PATH = File.expand_path('../..', __FILE__)
require BOOT_PATH
require 'rails/commands/rails'
......@@ -33,7 +33,7 @@
Rails::Console.start(Rails::Application)
when 's', 'server'
require 'rails/commands/server'
Dir.chdir(File.expand_path('../..', __FILE__))
Dir.chdir(ROOT_PATH)
Rails::Server.start
when 'dbconsole'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册