Sha256: 08a02ee74d063f39d7ef2c1d035a2d14eca7d6a7f69fc3ceb4d81db4f520c8f7

Contents?: true

Size: 985 Bytes

Versions: 2

Compression:

Stored size: 985 Bytes

Contents

namespace :rubber do

  namespace :passenger do
  
    rubber.allow_optional_tasks(self)
  
    after "rubber:base:install_rubygems", "rubber:passenger:custom_install"
    
    task :custom_install, :roles => :web do
      rubber.sudo_script 'install_passenger', <<-ENDSCRIPT
        TMPDIR=`mktemp -d` || exit 1
        cd $TMPDIR
        # download and install current HEAD of passenger
        wget -q --output-document=passenger.tgz http://github.com/FooBarWidget/passenger/tarball/master
        tar -xvf passenger.tgz --strip-components 1
        rake package:gem && gem install pkg/*gem --no-rdoc --no-ri
        echo -en "\n\n\n\n" | passenger-install-apache2-module
        wget -q http://rubyforge.org/frs/download.php/41041/ruby-enterprise_1.8.6-20080810-i386.deb
        dpkg -i ruby-enterprise_1.8.6-20080810-i386.deb
        # enable needed apache modules / disable ubuntu default site
        a2enmod rewrite
        a2dissite default
      ENDSCRIPT
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sml-rubber-0.9.1 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
sml-rubber-0.9.3 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb