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

Version Path
capistrano3-puma-5.0.4 lib/capistrano/tasks/nginx.rake
capistrano3-puma-5.0.3 lib/capistrano/tasks/nginx.rake
capistrano3-puma-5.0.2 lib/capistrano/tasks/nginx.rake
capistrano3-puma-5.0.1 lib/capistrano/tasks/nginx.rake
capistrano3-puma-5.0.0 lib/capistrano/tasks/nginx.rake
capistrano3-puma-5.0.0.beta1 lib/capistrano/tasks/nginx.rake
capistrano3-puma-4.0.0 lib/capistrano/tasks/nginx.rake
capistrano3-puma-3.1.1 lib/capistrano/tasks/nginx.rake
capistrano3-puma-3.1.0 lib/capistrano/tasks/nginx.rake
capistrano3-puma-3.0.3 lib/capistrano/tasks/nginx.rake
capistrano3-puma-3.0.2 lib/capistrano/tasks/nginx.rake
capistrano3-puma-3.0.1 lib/capistrano/tasks/nginx.rake
capistrano3-puma-3.0.0 lib/capistrano/tasks/nginx.rake