Permalink
Browse files

Add support for triggering rolling restarts in Phusion Passenger Stan…

…dalone
  • Loading branch information...
1 parent e59bd9b commit 03aea17c60496482d492638e0b7d0057d50dea8e @FooBarWidget FooBarWidget committed Oct 24, 2012
@@ -151,6 +151,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)
@@ -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 03aea17

Please sign in to comment.