Skip to content

Instantly share code, notes, and snippets.

@spinnylights
spinnylights / Rails, Puma & Nginx.md
Created May 15, 2026 08:43 — forked from davidteren/Rails, Puma & Nginx.md
Example setup for Puma with Nginx in a Rails app

In the apps config/puma.rb file:

Change to match your CPU core count
# Check using this on the server => grep -c processor /proc/cpuinfo
workers 4

# Min and Max threads per worker
threads 1, 6

app_dir = File.expand_path('../..', FILE)