Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add support for Union Station.

  • Loading branch information...
commit c251c080b0af7720da4c8bb499651811fb8be264 1 parent 2a5e884
@wfarr wfarr authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/moonshine/manifest/rails/templates/passenger.vhost.erb
View
15 lib/moonshine/manifest/rails/templates/passenger.vhost.erb
@@ -3,6 +3,14 @@
<% if configuration[:domain_aliases] %>
ServerAlias <%= configuration[:domain_aliases].to_a.join(' ') %>
<% end %>
+
+ <% if configuration[:passenger].nil? || configuration[:passenger][:version].nil? || (configuration[:passenger][:version] == :latest || configuration[:passenger][:version] > '3.0.4') %>
+ <% if configuration[:union_station] && configuration[:union_station][:key] %>
+ PassengerAnalytics on
+ UnionStationKey <%= configuration[:union_station][:key] %>
+ <% end %>
+ <% end %>
+
<% if configuration[:ssl] && configuration[:ssl][:only] %>
RewriteEngine On
RewriteCond %{HTTPS} !=on
@@ -185,6 +193,13 @@
<% end %>
DocumentRoot <%= configuration[:deploy_to] + "/current/public" %>
+ <% if configuration[:passenger].nil? || configuration[:passenger][:version].nil? || (configuration[:passenger][:version] == :latest || configuration[:passenger][:version] > '3.0.4') %>
+ <% if configuration[:union_station] && configuration[:union_station][:key] %>
+ PassengerAnalytics on
+ UnionStationKey <%= configuration[:union_station][:key] %>
+ <% end %>
+ <% end %>
+
<Directory <%= configuration[:deploy_to] + "/current/public" %>>
Options FollowSymLinks
AllowOverride None
Please sign in to comment.
Something went wrong with that request. Please try again.