capistrano-cable 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f72bb2750201ab8daf11827c5ebbbb6b95f876133ec9c41d0f84390a8a20f66e
4
- data.tar.gz: 5279ffa62302ffb85b4b568c79243532fa66c950fb067bd23b73b318800602ec
3
+ metadata.gz: 0476b2a70385f27e450fb4c33ea4e92cc603e6ef58cdf9de2647ab60cd18ab76
4
+ data.tar.gz: 06d1c78dceded6a16d139538907fb2088c2dceaae567d821e1518c6308560385
5
5
  SHA512:
6
- metadata.gz: c5253f0c54f48c44f284be7a93497e40487af8585e4cd3fe27bb1cd45c9a67ced5cc84ce6fbf83495b7ce2e274e8bbbe28692205d582d9e1e9b43edd82455fd7
7
- data.tar.gz: 931ab55287a48561c83d4c576c77caa5e8132da512807b276b9f563bf57ca1fb1d5de62eeb4a42ec78a0a3e3ea6c3c257c53b39feaa352ccb5d20fa91f701acf
6
+ metadata.gz: 804b2336e2e3f851ccd662ed638d28e414c03ab81b1539a63ecd5d33218c107d96945097d62234314841317a8380e4745aa3f608bbee938c3206f4a1c63ca62e
7
+ data.tar.gz: 7d3ef7e8254fba0cc077a700c3244fd61fef11f785a8a3566f54c7342ca12c327866dd1886e4334105a1399bd87af3abc90a4466fc17504731e69a7e51861018
data/README.md CHANGED
@@ -45,6 +45,7 @@ Many options are available to customize the cable server configuration. Here are
45
45
  # config/deploy.rb or config/deploy/<stage>.rb
46
46
  set :cable_role, :web
47
47
  set :cable_port, 29292
48
+ # set :cable_limit_nofile, 65536 # optional, to customize if `Errno::EMFILE: Too many open files` happens
48
49
  # set :cable_ssl_certificate
49
50
  # set :cable_ssl_certificate_key
50
51
  set :cable_rackup_file, 'cable/config.ru'
@@ -53,7 +54,7 @@ set :cable_pidfile, -> { File.join(shared_path, "tmp", "pids", "cable.pid") }
53
54
  set :cable_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
54
55
  set :cable_access_log, -> { File.join(shared_path, "log", "cable.access.log") }
55
56
  set :cable_error_log, -> { File.join(shared_path, "log", "cable.error.log") }
56
- set :cable_phased_restart, true
57
+ set :cable_phased_restart, -> { true }
57
58
  set :cable_service_unit_env_files, -> { fetch(:service_unit_env_files, []) }
58
59
  set :cable_service_unit_env_vars, -> { fetch(:service_unit_env_vars, []) }
59
60
  set :cable_service_templates_path, fetch(:service_templates_path, "config/deploy/templates")
@@ -21,7 +21,7 @@ module Capistrano
21
21
  set_if_empty :cable_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
22
22
  set_if_empty :cable_access_log, -> { File.join(shared_path, "log", "cable.access.log") }
23
23
  set_if_empty :cable_error_log, -> { File.join(shared_path, "log", "cable.error.log") }
24
- set_if_empty :cable_phased_restart, true
24
+ set_if_empty :cable_phased_restart, -> { true }
25
25
 
26
26
  set_if_empty :cable_systemctl_bin, -> { fetch(:systemctl_bin, "/bin/systemctl") }
27
27
  set_if_empty :cable_service_unit_name, -> { "#{fetch(:application)}_cable_#{fetch(:stage)}" }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module Cable
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -17,6 +17,7 @@ After=syslog.target network.target
17
17
  [Service]
18
18
  Type=<%= service_unit_type %>
19
19
  WatchdogSec=30
20
+ <%="LimitNOFILE=#{fetch(:cable_limit_nofile)}" if fetch(:cable_limit_nofile) %>
20
21
  <%="User=#{cable_user(@role)}" if fetch(:cable_systemctl_user) == :system %>
21
22
  <%="PIDFile=#{fetch(:cable_pidfile)}" if fetch(:cable_pidfile) %>
22
23
  WorkingDirectory=<%= current_path %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-cable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-12 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano