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

前端 未结 20 912
别那么骄傲
别那么骄傲 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:10

    I got the same error, it happend to be related to gem dotenv. Instructions were to add the following to Gemfile:

    gem 'dotenv', :require => 'dotenv/rails-now'
    

    But as it turned out, dotenv/rails-now caused the error. If you use dotenv don't require rails-now

提交回复
热议问题