Rails 3.1 is very slow in development-mode because of assets, what to do?

后端 未结 5 1182
再見小時候
再見小時候 2020-12-13 00:11

After I added Sprockets, Rails is loading very slow in development mode, what should I do to speed it up?

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 00:38

    Weird solution that worked for me. I normally navigated to my app on development via myapp.local:3000, which was set in my hosts file. Assets were loading ridiculously slow.

    By navigating to my app via 127.0.0.1:3000, the assets loaded quickly, and further, after using the local ip one time, I could then navigation using myapp.local:3000 and the assets were loading super fast now.

    Wish I could tell you why, but I hope it helps someone out there. I'm on OSX 10.7.5.

提交回复
热议问题