Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awesome/6c2c3c168e750e975494bd828983c7b9 to your computer and use it in GitHub Desktop.
Save awesome/6c2c3c168e750e975494bd828983c7b9 to your computer and use it in GitHub Desktop.
guide: use puma-dev as proxy

Guide (macOS) to setup puma-dev and use as proxy

Install puma-dev as described in the official documentation

brew install puma/puma/puma-dev


# Configure some DNS settings that have to be done as root
sudo puma-dev -setup
# Configure puma-dev to run in the background on ports 80 and 443 with the domain `.test`.
puma-dev -install

Use as proxy

Proxy for localhost:3000:

echo '3000' > ~/.puma-dev/proxy3000

Open browser via https to: https://proxy3000.test

PS: the naming proxy3000 is a made-up convention. You can use whatever name you want, but best practice is to adhere to a convention.

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