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
sunzi-rails-0.2.14 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.13 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.12 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.11 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.10 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.9 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.8 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.7 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.6 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.5 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.4 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.3 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.2 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.1 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.2.0 lib/templates/create/recipes/passenger.sh
sunzi-rails-0.1.0 lib/templates/create/recipes/passenger.sh