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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle