Skip to content

Instantly share code, notes, and snippets.

View wwhiro200's full-sized avatar

wwhiro wwhiro200

View GitHub Profile
@wwhiro200
wwhiro200 / puma.rb
Last active December 5, 2017 20:23
Puma + Sidekiq: systemd units and configs
#!/usr/bin/env puma
environment = ENV.fetch('RAILS_ENV', 'production')
threads 0, 4
workers 1
bind 'tcp://0.0.0.0:9292'
preload_app!
plugin :tmp_restart
@wwhiro200
wwhiro200 / logrotate-sample
Created April 11, 2017 22:57
Logrotate sample for rails app
/var/www/[app_path]/shared/log/*.log {
daily
missingok
rotate 30
compress
delaycompress
notifempty
copytruncate
}