templates/passenger/config/rubber/role/passenger/passenger.conf in rubber-2.10.2 vs templates/passenger/config/rubber/role/passenger/passenger.conf in rubber-2.11.0
- old
+ new
@@ -1,45 +1,42 @@
<%
@path = '/etc/apache2/mods-available/passenger.conf'
@post = 'cd /etc/apache2/mods-enabled && ln -fs ../mods-available/passenger.conf'
%>
-LoadModule passenger_module <%= rubber_env.passenger_lib %>
-PassengerRoot <%= rubber_env.passenger_root %>
-PassengerRuby <%= rubber_env.passenger_ruby %>
-PassengerUseGlobalQueue on
+<IfModule mod_passenger.c>
+ PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
+ PassengerDefaultRuby <%= rubber_env.passenger_ruby %>
-PassengerUserSwitching on
-PassengerUser <%= rubber_env.app_user %>
-PassengerGroup <%= rubber_env.app_user %>
+ PassengerUserSwitching on
+ PassengerUser <%= rubber_env.app_user %>
+ PassengerGroup <%= rubber_env.app_user %>
-# max number of rails instances per appserver
-PassengerMaxPoolSize <%= rubber_env.max_app_connections %>
+ # max number of rails instances per appserver
+ PassengerMaxPoolSize <%= rubber_env.max_app_connections %>
-# min number of rails instances per appserver (by setting this as the max, we make sure we only wait for workers to spawn on the first request)
-PassengerMinInstances <%= rubber_env.max_app_connections %>
+ # min number of rails instances per appserver (by setting this as the max, we make sure we only wait for workers to spawn on the first request)
+ PassengerMinInstances <%= rubber_env.max_app_connections %>
-# Use PassengerMaxPoolSize for limit as we only have 1 app
-PassengerMaxInstancesPerApp 0
+ # Use PassengerMaxPoolSize for limit as we only have 1 app
+ PassengerMaxInstancesPerApp 0
-# For performances sake, never shutdown rails instances when idle
-PassengerPoolIdleTime 0
+ # For performances sake, never shutdown rails instances when idle
+ PassengerPoolIdleTime 0
-# For performances sake, never shutdown a rails instance after N requests
-PassengerMaxRequests 0
+ # For performances sake, never shutdown a rails instance after N requests
+ PassengerMaxRequests 0
-# Passenger checks stuff like restart.txt on every request when this is 0
-PassengerStatThrottleRate <%= Rubber.env == 'production' ? '60' : '0' %>
+ # Passenger checks stuff like restart.txt on every request when this is 0
+ PassengerStatThrottleRate <%= Rubber.env == 'production' ? '60' : '0' %>
-# Turning this on breaks mod_rewrite
-PassengerHighPerformance off
+ # Turning this on breaks mod_rewrite
+ PassengerHighPerformance off
-# Cache framework code per application
-RailsSpawnMethod smart-lv2
+ # Cache framework code per application
+ PassengerSpawnMethod smart
-# For performances sake, don't ever unload framework spawner
-RailsFrameworkSpawnerIdleTime 0
+ # For performances sake, don't ever unload app spawner
+ PassengerMaxPreloaderIdleTime 0
-# For performances sake, don't ever unload app spawner
-RailsAppSpawnerIdleTime 0
-
-# Don't show the friendly error pages in production because it could leak information the public shouldn't see.
-PassengerFriendlyErrorPages <%= Rubber.env == 'production' ? 'off' : 'on' %>
+ # Don't show the friendly error pages in production because it could leak information the public shouldn't see.
+ PassengerFriendlyErrorPages <%= Rubber.env == 'production' ? 'off' : 'on' %>
+</IfModule>
\ No newline at end of file