Sha256: 77cee0d58d8ce79a49d0c0bc97191c9a3dba8d79000d96efe7a566027a487930

Contents?: true

Size: 832 Bytes

Versions: 2

Compression:

Stored size: 832 Bytes

Contents

module DevenvBuild
  module Provisioning
    class Passenger < Base
      def help
        'Install Phusion Passenger + Passenger.'
      end

      def before
        <<-BEFORE
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
apt-get install -y apt-transport-https ca-certificates
echo "deb https://oss-binaries.phusionpassenger.com/apt/passenger xenial main" > /etc/apt/sources.list.d/passenger.list
BEFORE
      end

      def middle
        'apt-get install -y passenger nginx-extras'
      end

      def after
        'perl -i -p -e \'s/# passenger_root \/usr\/lib\/ruby\/vendor_ruby\/phusion_passenger\/locations\.ini\;\n/passenger_root \/usr\/lib\/ruby\/vendor_ruby\/phusion_passenger\/locations.ini;\n\tpassenger_ruby ~\/.rbenv\/shims\/ruby;\n/\' /etc/nginx/nginx.conf'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devenv_build-1.1.1 lib/devenv_build/provisioning/passenger.rb
devenv_build-1.1.0 lib/devenv_build/provisioning/passenger.rb