Caddy puma-dev for local development with custom domains and HTTPS
05-Apr-2023 752
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 #Caddy #puma-dev #local #development #custom #domains #HTTPS #development #puma-dev https://rubyonrails.ba/link/caddy-puma-dev-for-local-development-with-custom-domains-and-https