Caddy puma-dev for local development with custom domains and HTTPS

I develop a lot of webapps locally, often at the same time. For Ruby-only applications, puma-dev is by far the most convenient way to handle the situation. A single setup command gets you a lot out of the box:DNS resolution for all .test domains to resolve to localhostA locally-generated SSL certificate root, so HTTPS worksAutomatic starting and stopping of Ruby processes on demandAdding apps easily: run puma-dev link then visit https://appname.test.The one downside of puma-dev is that there’s no way to set a breakpoint and interact directly with the web server in a terminal. In those tricky cases, I would typically start a dev server myself just for that breakpoint and then go back to using the puma-dev server after.
Caddy puma-dev for local development with custom domains and HTTPS #ruby #rubydeveloper #rubyonrails #development #puma-dev https://rubyonrails.ba/single/caddy-puma-dev-for-local-development-with-custom-domains-and-https

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles