Skip to content

Instantly share code, notes, and snippets.

@shuuuuun
Last active December 8, 2021 15:41
Show Gist options
  • Save shuuuuun/1d4e1ab46d68c527fb92a808da86d1ab to your computer and use it in GitHub Desktop.
Save shuuuuun/1d4e1ab46d68c527fb92a808da86d1ab to your computer and use it in GitHub Desktop.
[pumactl.sh]
#!/bin/bash
ROOT_PATH=`cd "$(dirname $0)/../" && pwd`
pid=`cat $ROOT_PATH/tmp/pids/puma.pid`
kill $pid && echo "killed $pid"
#!/bin/bash
PUMA_DAEMONIZE=1 bundle exec puma -C config/puma.rb -d
# PUMA_DAEMONIZE=1 bundle exec puma --config config/puma.rb --workers 3 --preload --daemon
@shuuuuun
Copy link
Author

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