Skip to content

Instantly share code, notes, and snippets.

@rcugut
Created May 7, 2020 18:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rcugut/18918629f467367135542b9ae2968706 to your computer and use it in GitHub Desktop.
Save rcugut/18918629f467367135542b9ae2968706 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