Sha256: 8c3d381365afb5f524ba6c573f48fde144c66f7753fca252bb66481c8f9fe5ab

Contents?: true

Size: 335 Bytes

Versions: 9

Compression:

Stored size: 335 Bytes

Contents

#!/bin/bash
app=$1;
cd $app || exit 1

if [ -e Gemfile ]; then
    exec <%= fetch(:puma_user) ? "sudo -u #{puma_user(@role)}" : '' %> sh -c "exec bundle exec puma -C <%= fetch(:puma_conf) %> --daemon"
else
    exec <%= fetch(:puma_user) ? "sudo -u #{puma_user(@role)}" : '' %> sh -c "exec puma -C <%= fetch(:puma_conf) %> --daemon"
fi

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
capistrano3-puma-3.1.0 lib/capistrano/templates/run-puma.erb
capistrano3-puma-3.0.3 lib/capistrano/templates/run-puma.erb
capistrano3-puma-3.0.2 lib/capistrano/templates/run-puma.erb
capistrano3-puma-3.0.1 lib/capistrano/templates/run-puma.erb
capistrano3-puma-2.0.0 lib/capistrano/templates/run-puma.erb
capistrano3-puma-3.0.0 lib/capistrano/templates/run-puma.erb
capistrano-puma-a-2.0.0 lib/capistrano/templates/run-puma.erb
capistrano3-puma-1.2.1 lib/capistrano/templates/run-puma.erb
capistrano3-puma-1.2.0 lib/capistrano/templates/run-puma.erb