Sha256: 839b0a4494e18ae0587387cc6075a160cc0c8225066c41ddac60858783799edc
Contents?: true
Size: 796 Bytes
Versions: 4
Compression:
Stored size: 796 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
4 entries across 4 versions & 1 rubygems