Sha256: 734167971d95688978d4e6051d2aca3f9cd5f75000a75cd497ea411203f18e00
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
[Unit] Description=Puma HTTP Server for <%= "#{fetch(:application)} (#{fetch(:stage)})" %> After=network.target [Service] Type=simple <%="User=#{puma_user(@role)}" if fetch(:puma_systemctl_user) == :system %> WorkingDirectory=<%= current_path %> ExecStart=/usr/local/rbenv/bin/rbenv exec bundle exec puma -C <%= fetch(:puma_conf) %> ExecReload=/bin/kill -USR1 $MAINPID ExecStop=/bin/kill -TSTP $MAINPID StandardOutput=append:<%= fetch(:puma_access_log) %> StandardError=append:<%= fetch(:puma_error_log) %> <%="EnvironmentFile=#{fetch(:puma_service_unit_env_file)}" if fetch(:puma_service_unit_env_file) %> <% fetch(:puma_service_unit_env_vars, []).each do |environment_variable| %> <%="Environment=#{environment_variable}" %> <% end %> Environment=RBENV_VERSION=<%= fetch(:rbenv_ruby) %> Environment=RBENV_ROOT=/usr/local/rbenv Restart=always RestartSec=1 SyslogIdentifier=puma_<%= fetch(:application) %>_<%= fetch(:stage) %> [Install] WantedBy=<%=(fetch(:puma_systemctl_user) == :system) ? "multi-user.target" : "default.target"%>
Version data entries
3 entries across 3 versions & 1 rubygems