我尝试了很多东西,比如卸载/重新安装rails和gem,但无济于事.
当我进入我的新项目并运行rails s或捆绑exec rails服务器时,我收到此错误:
bin/rails:6: warning: already initialized constant APP_PATH
/Users/toabui/Sites/cms/bin/rails:6: warning: previous definition of APP_PATH was here Usage: rails COMMAND [ARGS]
Run Code Online (Sandbox Code Playgroud)
在我的bin/rails里面,我看到了这段代码:
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
Run Code Online (Sandbox Code Playgroud)
有没有人知道为什么我在运行rails时遇到错误?
我用谷歌搜索了,看起来像弹簧宝石有一个错误,但我似乎无法让它工作.