Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update to passenger 2.1.3 and use a package version

Signed-off-by: Ben Schwarz <ben.schwarz@gmail.com>
  • Loading branch information...
commit 3067728c99be4c9884a37ef2c8af87b8f36fb9e2 1 parent 908a5a9
@adzap adzap authored committed
Showing with 6 additions and 5 deletions.
  1. +6 −5 config/stack/apache.rb
View
11 config/stack/apache.rb
@@ -18,6 +18,7 @@
package :passenger, :provides => :appserver do
description 'Phusion Passenger (mod_rails)'
+ version '2.1.3'
gem 'passenger' do
post :install, 'echo -en "\n\n\n\n" | sudo passenger-install-apache2-module'
@@ -26,8 +27,8 @@
post :install, 'touch /etc/apache2/extras/passenger.conf'
post :install, 'echo "Include /etc/apache2/extras/passenger.conf"|sudo tee -a /etc/apache2/apache2.conf'
- [%q(LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.1.2/ext/apache2/mod_passenger.so),
- %q(PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.1.2),
+ [%Q(LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-#{version}/ext/apache2/mod_passenger.so),
+ %Q(PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-#{version}),
%q(PassengerRuby /usr/local/bin/ruby),
%q(RailsEnv production)].each do |line|
post :install, "echo '#{line}' |sudo tee -a /etc/apache2/extras/passenger.conf"
@@ -38,9 +39,9 @@
end
verify do
- has_file '/etc/apache2/extras/passenger.conf'
- has_file '/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.1.2/ext/apache2/mod_passenger.so'
- has_directory '/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.1.2'
+ has_file "/etc/apache2/extras/passenger.conf"
+ has_file "/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-#{version}/ext/apache2/mod_passenger.so"
+ has_directory "/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-#{version}"
end
requires :apache, :apache2_prefork_dev, :ruby_enterprise
Please sign in to comment.
Something went wrong with that request. Please try again.