Sha256: 5d57b34ebb035746425bc9f4b6b92abf09f3b3e5baf620297b80d897e3f4daca
Contents?: true
Size: 738 Bytes
Versions: 6
Compression:
Stored size: 738 Bytes
Contents
require 'daddy/itamae' directory '/etc/nginx/conf.d/servers' do user 'root' owner 'root' group 'root' mode '755' end template "/etc/nginx/conf.d/servers/#{ENV['SERVER_NAME']}.conf" do source ::File.join(File.dirname(__FILE__), 'templates/etc/nginx/conf.d/servers/passenger.conf.erb') user 'root' owner 'root' group 'root' mode '644' variables :app_name => ENV['APP_NAME'], :server_name => ENV['SERVER_NAME'], :rails_env => ENV['RAILS_ENV'], :rails_root => ENV['RAILS_ROOT'], :behind_load_balancer => false end if ENV['RAILS_ROOT'].start_with?("/home/#{ENV['USER']}/") directory "/home/#{ENV['USER']}" do user 'root' owner ENV['USER'] group ENV['USER'] mode '755' end end
Version data entries
6 entries across 6 versions & 1 rubygems