Sha256: 8a15ec09adbe7651aa3825b6f0c19a7724d0d7f8a0ded4477230de6804de1de7
Contents?: true
Size: 510 Bytes
Versions: 6
Compression:
Stored size: 510 Bytes
Contents
namespace :puma do desc "Setup nginx configuration" task :nginx_config do on roles(fetch(:puma_nginx, :web)) do |role| 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
Version data entries
6 entries across 6 versions & 1 rubygems