rails server bin/rails:6: warning: already initialized constant APP_PATH error

前端 未结 20 867
别那么骄傲
别那么骄傲 2020-11-30 22:42

I\'ve tried a number of things like uninstalling/reinstalling rails and gems but to no avail.

When I go into my new project and run rails s or bundle exec rails serv

20条回答
  •  抹茶落季
    2020-11-30 23:20

    I was getting the same error. Removed spring from Gemfile and re-bundled. Not really a solution though.

    I found the code that created this error in config/initializers/an_initializer.rb

    require "lib/a_file_i_need"
    

    I changed it for

    require "#{ Rails.root }/lib/a_file_i_need"
    

提交回复
热议问题