Question

I have RoR application and it takes long time to start for first time. About 5-10 min. Link to my app - HERE

But when it starts it works quite good. Some off my server adminstrators sugested that I have to use cron to curl the front page every 30 minutes or so.

That could be the solution ? Or how can I determinate the reason off all this ?

Thanks!

Was it helpful?

Solution

If you're using Phusion Passenger application server, you might want to use PassengerPreStart directive.

From documentation:

By default, Phusion Passenger does not start any application processes until said web application is first accessed. The result is that the first visitor of said web application might experience a small delay as Phusion Passenger is starting the web application on demand. If that is undesirable, then this directive can be used to pre-started application processes during Apache startup.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top