Sha256: 658970ee3b3bf036a1b3b1ab09764f65e924aabc7534b22ef314296650f7c5c3
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
namespace :nginx do desc "Setup nginx configuration" task :config do on roles(:puma_nginx) do template_puma("nginx_conf", "/tmp/nginx_#{fetch(:nginx_config_name)}") 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.7.0 | lib/capistrano/tasks/nginx.cap |