Skip to content

Instantly share code, notes, and snippets.

@kalelc
Last active July 25, 2016 15:56
Show Gist options
  • Save kalelc/6fe69c188df5a6d69ce96fd13eba2465 to your computer and use it in GitHub Desktop.
Save kalelc/6fe69c188df5a6d69ce96fd13eba2465 to your computer and use it in GitHub Desktop.
config puma server

Assets

bundle exec rake assets:precompile

Puma

  • production is default enviroment bundle exec puma -C config/puma.rb -d

  • set environment bundle exec puma -e staging -C config/puma.rb -d

Puma

restart

kill -s SIGUSR2 $(cat shared/pids/puma.pid)

stop

kill -s SIGTERM $(cat shared/pids/puma.pid)

with pumactl

restart

pumactl -P shared/pids/puma.pid restart

stop

pumactl -P shared/pids/puma.pid stop

list puma cluster when start

tail -f shared/log/puma.stderr.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment