Sha256: aeca61bfb94bfbd8eb6a621e03788fd062129c176dabd81c7dd47ce5d65fa1a3

Contents?: true

Size: 784 Bytes

Versions: 36

Compression:

Stored size: 784 Bytes

Contents

DEPLOYER_NAME=<%= @attributes.deployer_name %>
DEPLOYER_PATH=/home/$DEPLOYER_NAME
RBENV_PATH=$DEPLOYER_PATH/.rbenv

if sunzi.to_be_done "install passenger"; then
  sunzi.mute "apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7"
  sunzi.install "apt-transport-https"
  sunzi.install "ca-certificates"
  sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main > /etc/apt/sources.list.d/passenger.list'
  sunzi.mute "apt-get update"

  sunzi.install "nginx-extras"
  sunzi.install "passenger"

  sed -i -e "s|# passenger_root|passenger_root|g" /etc/nginx/nginx.conf
  sed -i -e "s|# passenger_ruby /usr/bin/passenger_free_ruby|passenger_ruby $RBENV_PATH/shims/ruby|g" /etc/nginx/nginx.conf

  sunzi.done "install passenger"
fi

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
o2webappizer-0.2.6 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.2.5 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.2.4 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.2.3 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.2.2 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.2.1 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.2.0 templates/config/sunzi/recipes/passenger.sh
sunzi-rails-0.2.19 lib/templates/create/recipes/passenger.sh
o2webappizer-0.1.15 templates/config/sunzi/recipes/passenger.sh
sunzi-rails-0.2.18 lib/templates/create/recipes/passenger.sh
o2webappizer-0.1.14 templates/config/sunzi/recipes/passenger.sh
sunzi-rails-0.2.17 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.16 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.15 lib/templates/create/recipes/passenger.sh
o2webappizer-0.1.13 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.1.12 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.1.11 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.1.10 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.1.9 templates/config/sunzi/recipes/passenger.sh
o2webappizer-0.1.8 templates/config/sunzi/recipes/passenger.sh