When developing Rails apps we use http://localhost:3000 as a default URL to access. It would be nice to use custom domains like
awesome-rails-app.test . Even better if we can use https so it could be accessed using https://awesome-rails-app.test . in this case puma-dev can help you.
I will describe the installation for macOS, for Linux you can use https://github.com/puma/puma-dev#linux-support.
Add puma in the Gemfile.
# Gemfile gem 'puma'
Install Puma-dev using Homebrew.
brew install puma/puma/puma-dev
Next we need to configure some DNS settings and Configure puma-dev to run in the background. By default it uses the domain
sudo puma-dev -setup puma-dev -install
Symlink you app's folder into
Also you can use
cd awesome-rails-app puma-dev link -n awesome-rails-app .
Now access to the URL: https://awesome-rails-app.test
touch tmp/restart inside your Rails project.
These will stop all the apps added into
If you use Rubymine as your IDE you can debug your app simply by pressing
Option + Shift + F5 to attach to the puma-dev process. (See References below)