Sha256: 641f2ba198e3e26e858660e028b9703350e8f441a01eba1ab24b8610f4ca5aa2
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
module Capistrano class Puma::Nginx < Capistrano::Plugin include PumaCommon def set_defaults # Nginx and puma configuration set_if_empty :nginx_config_name, "#{fetch(:application)}_#{fetch(:stage)}" set_if_empty :nginx_sites_available_path, '/etc/nginx/sites-available' set_if_empty :nginx_sites_enabled_path, '/etc/nginx/sites-enabled' set_if_empty :nginx_server_name, "localhost #{fetch(:application)}.local" set_if_empty :nginx_flags, 'fail_timeout=0' set_if_empty :nginx_http_flags, fetch(:nginx_flags) set_if_empty :nginx_socket_flags, fetch(:nginx_flags) set_if_empty :nginx_use_ssl, false end def define_tasks eval_rakefile File.expand_path('../../tasks/nginx.rake', __FILE__) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano3-puma-3.0.1 | lib/capistrano/puma/nginx.rb |
capistrano3-puma-3.0.0 | lib/capistrano/puma/nginx.rb |