Sha256: bf3acc172690cbaeaaba3556e4b0cf9098c2121844a009c1836ec67e34cb0fbb

Contents?: true

Size: 681 Bytes

Versions: 4

Compression:

Stored size: 681 Bytes

Contents

[Unit]
Description=Cable Puma HTTP Server Accept Sockets for <%= "#{fetch(:application)} (#{fetch(:stage)})" %>

[Socket]
<% cable_binds.each do |bind| -%>
<%= "ListenStream=#{bind.local.address}" %>
<% end -%>

# Don't let systemd accept the request, wait for Cable to do that.
# Systemd will start the cable service upon first request if it wasn't started.
#
# You might also want to set your Nginx upstream to have a fail_timeout large enough to accomodate your app's
# startup time.
Accept=no
<%= "NoDelay=true" if fetch(:cable_systemctl_user) == :system %>
ReusePort=true
Backlog=1024

SyslogIdentifier=<%= fetch(:cable_socket_unit_name) %>

[Install]
WantedBy=sockets.target

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capistrano-cable-0.1.3 lib/capistrano/templates/cable.socket.erb
capistrano-cable-0.1.2 lib/capistrano/templates/cable.socket.erb
capistrano-cable-0.1.1 lib/capistrano/templates/cable.socket.erb
capistrano-cable-0.1.0 lib/capistrano/templates/cable.socket.erb