0

There is Apache (httpd) + Phusion Passenger + Rails application bundle on server (CentOS 6.5).

I have some background threads in application which are started in an initializer.

The problem is: When httpd is started it does not run application and therefore background thereads aren't started too. Apache initializes application when I enter application's URL in browser's address line the first time.

When I run the same application in Webrick with rails server command, initializers are executed as expected.

What to do?

Paul
  • 25,812
  • 38
  • 124
  • 247
  • 2
    possible duplicate of [Slow initial server startup when using Phusion Passenger and Rails](http://stackoverflow.com/questions/853532/slow-initial-server-startup-when-using-phusion-passenger-and-rails) – Holger Just Jun 17 '14 at 12:38
  • @Holger Just: I agree - there is a recipe that helped me few minutes ago. – Paul Jun 17 '14 at 13:20

0 Answers0