What are you #Rails devs using for apps that use subdomains locally? *.localhost is simple but doesn’t work in Safari and I can’t get https://lvh.me or https://nip.io to work locally (🤷♂️). What’s “best practice”?
In tests I just use the default https://example.com and set host! accordingly. Using localhost for Capybara tho
In tests I just use the default https://example.com and set host! accordingly. Using localhost for Capybara tho
Comments
You’ll have to manually type ports in your URL though *shudders*
https://avohq.io/blog/custom-domains-ssl-in-rails-development
One of the reasons why .test is recommended nowadays.
I'll give it a go and refresh the article.
Thanks!
A colleague never got it working satisfactory (likely due to conflicting existing configuration).
https://github.com/puma/puma-dev