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

前端 未结 20 911
别那么骄傲
别那么骄傲 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 couldn't find the an_initilizer.rb in my directory and I tried uninstalling/installing the spring gem but it didn't work.

    However I did managed to finally get it working.

    Apparently there is some conflict with spring and rails 4+.

    I needed to run:

    rake rails:update:bin 
    

    But I ran across another error:

    Library not loaded: libmysqlclient.18.dylib
    

    I ran the following command which I found on another stackoverflow post:

    sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib 
    

    Then ran the original command:

     rake rails:update:bin 
    

    Then run the server command:

     rails s
    

    And now my WebBrick Server is running.

提交回复
热议问题