Permalink
Browse files

Add support for triggering rolling restarts in Phusion Passenger Stan…

…dalone
  • Loading branch information...
1 parent 811254c commit ce213626ee6609c2fa84f445378a53a669198dd7 @FooBarWidget FooBarWidget committed Oct 24, 2012
Showing with 5 additions and 0 deletions.
  1. +4 −0 lib/phusion_passenger/standalone/start_command.rb
  2. +1 −0 resources/templates/standalone/config.erb
View
4 lib/phusion_passenger/standalone/start_command.rb
@@ -152,6 +152,10 @@ def parse_my_options
wrap_desc("The spawn method to use (default: #{@options[:spawn_method]})")) do |value|
@options[:spawn_method] = value
end
+ opts.on("--rolling-restarts",
+ wrap_desc("Enable rolling restarts (Enterprise only)")) do
+ @options[:rolling_restarts] = true
+ end
opts.on("--union-station-gateway HOST:PORT", String,
wrap_desc("Specify Union Station Gateway host and port")) do |value|
host, port = value.split(":", 2)
View
1 resources/templates/standalone/config.erb
@@ -46,6 +46,7 @@ http {
passenger_min_instances <%= @options[:min_instances] %>;
<% if @options[:user] %>passenger_default_user <%= @options[:user] %>;<% end %>
<% if debugging? %>passenger_log_level 2;<% end %>
+ <% if @options[:rolling_restarts] %>passenger_rolling_restarts on;<% end %>
<% if @options[:union_station_gateway_address] %>
union_station_gateway_address <%= @options[:union_station_gateway_address] %>;

0 comments on commit ce21362

Please sign in to comment.