Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed passenger.rb as it was apache specific. Each web server file …

…owns their own method of installing passenger
  • Loading branch information...
commit 6f74a49cee1f723b2fe4e5af2270331abee2235d 1 parent 7bf6664
@benschwarz authored
Showing with 0 additions and 30 deletions.
  1. +0 −30 config/stack/passenger.rb
View
30 config/stack/passenger.rb
@@ -1,30 +0,0 @@
-package :passenger 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'
-
- # Create the passenger conf file
- post :install, 'mkdir -p /etc/apache2/extras'
- 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-#{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"
- end
-
- # Restart apache to note changes
- post :install, '/etc/init.d/apache2 restart'
- end
-
- verify do
- 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
-end
Please sign in to comment.
Something went wrong with that request. Please try again.