Sha256: e3eaf32473bba45b6325e121c29a88386749fe7752fdc7e2b016eb8465574e2a
Contents?: true
Size: 599 Bytes
Versions: 13
Compression:
Stored size: 599 Bytes
Contents
git_plugin = self namespace :puma do desc 'Setup nginx configuration' task :nginx_config do on roles(fetch(:puma_nginx, :web)) do |role| git_plugin.puma_switch_user(role) do git_plugin.template_puma('nginx_conf', "/tmp/nginx_#{fetch(:nginx_config_name)}", role) sudo :mv, "/tmp/nginx_#{fetch(:nginx_config_name)} #{fetch(:nginx_sites_available_path)}/#{fetch(:nginx_config_name)}" sudo :ln, '-fs', "#{fetch(:nginx_sites_available_path)}/#{fetch(:nginx_config_name)} #{fetch(:nginx_sites_enabled_path)}/#{fetch(:nginx_config_name)}" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems