Sha256: 1fb1e419ae22928bb1779823d64308e41a5200a64451f2b412ca5b4a86629d47

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 Bytes

Contents

#!/bin/bash --login
# Start puma service

# Redirect stderr so everything ends up in the log file
exec 2>&1

# Announce start
echo "<%= "User: #{fetch(:user)} Application: #{fetch(:application)}, Environment: #{environment} Service: #{fetch(:puma_runit_service_name)}" %> starting..."

# remove pumactl.sock and puma.sock if existing, as puma doesn't overwrite and files may be
# existing after server crash or if puma was not properly shut down.
rm -f "<%= fetch(:puma_socket_file) %>"
rm -f "<%= fetch(:puma_control_file) %>"
cd '<%= current_path %>'

# Start puma
RAILS_ENV=<%= environment %> exec <%= fetch(:puma_bin) %> -C <%= fetch(:puma_config_file) %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
capistrano-pumaio-3.1.6 templates/runit/run.erb
capistrano-pumaio-3.1.4 templates/runit/run.erb
capistrano-pumaio-3.1.3 templates/runit/run.erb
capistrano-pumaio-3.1.2 templates/runit/run.erb
capistrano-pumaio-3.1.1 templates/runit/run.erb
capistrano-pumaio-3.0.3 templates/runit/run.erb
capistrano-pumaio-3.0.2 templates/runit/run.erb
capistrano-pumaio-3.0.1 templates/runit/run.erb
capistrano-pumaio-3.0.0 templates/runit/run.erb