Module | PhusionPassenger::LoaderSharedHelpers |
In: |
lib/phusion_passenger/loader_shared_helpers.rb
|
Provides shared functions for loader and preloader apps.
To be called after the request handler main loop is exited. This function will fire off necessary events perform necessary cleanup tasks.
To be called before the request handler main loop is entered, but after the app startup file has been loaded. This function will fire off necessary events and perform necessary preparation tasks.
forked indicates whether the current worker process is forked off from an ApplicationSpawner that has preloaded the app code. options are the spawn options that were passed.
Prepare an application process using rules for the given spawn options. This method is to be called before loading the application code.
startup_file is the application type‘s startup file, e.g. "config/environment.rb" for Rails apps and "config.ru" for Rack apps. options are the spawn options that were given.
This function may modify options. The modified options are to be passed to the request handler.