lib/orats/templates/includes/new/rails/config/puma.rb in orats-0.9.1 vs lib/orats/templates/includes/new/rails/config/puma.rb in orats-0.9.2
- old
+ new
@@ -4,20 +4,18 @@
workers ENV['WORKERS'].to_i
if ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
bind 'tcp://0.0.0.0:3000'
else
- bind "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}/#{ENV['SERVICE']}"
+ bind "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}"
end
-pidfile "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}/#{ENV['SERVICE']}.pid"
+pidfile "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}.pid"
worker_timeout 30
-stdout_redirect "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}/" + \
- "#{ENV['SERVICE']}.access.log",
- "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}/" + \
- "#{ENV['SERVICE']}.error.log"
+stdout_redirect "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}.access.log",
+ "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}.error.log"
preload_app!
restart_command 'bundle exec puma'