레일과 보석을 제거 / 재설치하는 것과 같은 여러 가지를 시도했지만 아무 소용이 없습니다.
새 프로젝트로 이동하여 rails s 또는 bundle 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]
내 빈 / 레일 안에 다음 코드가 있습니다.
#!/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'
내가 rails s를 실행할 때 왜 계속 그 오류가 발생하는지 아는 사람이 있습니까?
나는 봤는데 봄 보석에 오류가있는 것 같지만 작동하도록 할 수없는 것 같습니다.
database.yml에서 어댑터 의 구성 이 다릅니다Gemfile.