example/puma.rb in puma-daemon-0.2.2 vs example/puma.rb in puma-daemon-0.2.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'puma/daemon'
# The directory to operate out of.
# The default is the current directory.
@@ -32,11 +34,11 @@
bind 'tcp://0.0.0.0:9292'
# Instead of “bind 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'” you
# can also use the “ssl_bind” option.
- # ssl_bind '127.0.0.1', '9292', { key: path_to_key, cert: path_to_cert }
+# ssl_bind '127.0.0.1', '9292', { key: path_to_key, cert: path_to_cert }
# Code to run before doing a restart. This code should
# close log files, database connections, etc.
# This can be called multiple times to add code each time.
@@ -69,8 +71,8 @@
# simple authentication.
# Check out https://github.com/puma/puma/blob/master/lib/puma/app/status.rb
# to see what the app has available.
-#activate_control_app 'unix:///var/run/pumactl.sock'
+# activate_control_app 'unix:///var/run/pumactl.sock'
daemonize