I was working on a Rails project, but while I wasn't paying attention my computer battery died while the rails server was still running.
Now when I type rails s
, the rails server takes a very very long time to start up. I timed it at about 40 seconds. It did not take this long before.
I tried looking up other answers, but nothing really worked.
Any help is appreciated, thanks.
I'm running a 2010 Macbook Pro, Rails 4.2.0
You can turn eager_loading and cache_control false and then it will take few seconds to start server
Note: By turning cache_control to false will gradually increase server boot up time ( in development environment ) as you don't need to restart webserver when you make changes in code. By turning eager_load to false will increase server boot up time from 2 minutes to 10 seconds but can cause inconsistency so use it wisely.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.