Sha256: 92d312bc9d22483179af2d6cd164955c3bc5d44a7af8015f9ea5a1e6b60b36c7

Contents?: true

Size: 1 KB

Versions: 12

Compression:

Stored size: 1 KB

Contents

namespace :rubber do

  namespace :passenger do
  
    rubber.allow_optional_tasks(self)
  
    after "rubber:install_gems", "rubber:passenger:custom_install"
    
    task :custom_install, :roles => :passenger do
      rubber.sudo_script 'install_passenger', <<-ENDSCRIPT
        if [[ -z `ls #{rubber_env.passenger_lib} 2> /dev/null` ]]; then
          echo -en "\n\n\n\n" | passenger-install-apache2-module
        fi
      ENDSCRIPT
    end

    after "rubber:setup_app_permissions", "rubber:passenger:setup_passenger_permissions"

    task :setup_passenger_permissions, :roles => :passenger do
      run "chown #{rubber_env.app_user}:#{rubber_env.app_user} #{current_path}/config/environment.rb"
    end

    # passenger depends on apache for start/stop/restart, just need these defined
    # as apache hooks into standard deploy lifecycle
    
    deploy.task :restart, :roles => :app do
    end
    
    deploy.task :stop, :roles => :app do
    end
    
    deploy.task :start, :roles => :app do
    end
    
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
axtro-rubber-1.2.3 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
axtro-rubber-1.2.2 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.2.1 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
axtro-rubber-1.2.1 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
axtro-rubber-1.2.0 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.2.0 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
nirvdrum-rubber-1.1.7 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.1.7 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.1.6 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.1.5 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.1.4 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
rubber-1.1.3 generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb