Sha256: 2a7e5111a8d9c4d3b3409505cf486804e6f14d70ff0e75751774ff77e012efce
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
namespace :puma do desc "Setup nginx configuration" task :nginx_config do on roles(:puma_nginx) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano3-puma-0.8.0 | lib/capistrano/tasks/nginx.cap |