Sha256: cbfd20c5291c453750a8746b2bdc69f1bb38c1f0fff6a383c273ea32b2aebec5
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# capistrano-nginx-unit ## Installation ```rb gem "capistrano-nginx-unit" ``` ## Usage Require in Capfile. ```rb # Capfile require "capistrano/nginx-unit" ``` Defined following tasks. ``` cap nginx_unit:configure # Set listener and application configuration for NGINX Unit cap nginx_unit:configure_app # Set application configuration for NGINX Unit cap nginx_unit:configure_listener # Set listener configuration for NGINX Unit cap nginx_unit:start # Start NGINX Unit process ``` Defined following customizable options. ```rb set :nginx_unit_roles, -> { :app } set :nginx_unit_pid, -> { "/var/run/unit.pid" } set :nginx_unit_control_sock, -> { "/var/run/control.unit.sock" } set :nginx_unit_options, -> { "" } set :nginx_unit_listen, -> { "*:3000" } set :nginx_unit_app_name, -> { fetch(:application) } set :nginx_unit_processes, -> { 1 } set :nginx_unit_user, -> { nil } set :nginx_unit_group, -> { nil } set :nginx_unit_script, -> { "config.ru" } ``` If you want to apply new code when deployed, please invoke `nginx_unit:configure` task after `deploy:published`. ```rb # deploy.rb after "deploy:published", "nginx_unit:configure" ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-nginx-unit-0.2 | README.md |