Sha256: 9ce5f5112f3c435afdabc1c1b4795b87fe9dc6458d109bd75c07fb540d26f1ab

Contents?: true

Size: 729 Bytes

Versions: 12

Compression:

Stored size: 729 Bytes

Contents

#!/bin/bash --login
# Start puma service
# <% c = Capistrano::BaseHelper.get_capistrano_instance %>

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

# Announce start
echo "<%= "User: #{c.fetch(:user)} Application: #{c.fetch(:application)} Service: #{c.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 wasnt shutdown properly.
rm -f "<%= c.fetch(:puma_socket_file) %>"
rm -f "<%= c.fetch(:puma_control_file) %>"
cd '<%= c.current_path %>'

# Start puma
RAILS_ENV=<%= Capistrano::BaseHelper.environment %> exec <%= c.fetch(:puma_bin) %> -C <%= c.fetch(:puma_remote_config) %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
capistrano-pumaio-0.0.18 templates/runit/run.erb
capistrano-pumaio-0.0.17 templates/runit/run.erb
capistrano-pumaio-0.0.16 templates/runit/run.erb
capistrano-pumaio-0.0.15 templates/runit/run.erb
capistrano-pumaio-0.0.14 templates/runit/run.erb
capistrano-pumaio-0.0.11 templates/runit/run.erb
capistrano-pumaio-0.0.10 templates/runit/run.erb
capistrano-pumaio-0.0.9 templates/runit/run.erb
capistrano-pumaio-0.0.8 templates/runit/run.erb
capistrano-pumaio-0.0.7 templates/runit/run.erb
capistrano-pumaio-0.0.6 templates/runit/run.erb
capistrano-pumaio-0.0.5 templates/runit/run.erb