ServiceWorker script evaluation failed due to HTTP (not HTTPS)

I used the following guide to enable HTTPS: Setting up HTTPS support with Let's Encrypt.
Maybe it’s outdated or maybe I should have used another guide? I set there the env “LETSENCRYPT_ACCOUNT_EMAIL”.
New to rails, so is it possible to explain which run in order to check the value of force_https?