简体   繁体   中英

RoR application takes long time to start

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!

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.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM