Closed lasernite closed 6 years ago
Thanks @lasernite! I must admit we don't check the initializer block too carefully to make sure it continues to work, we'll take a look :)
Hi @lasernite. I set up a fresh Rails 5 app, added an initializer, and it seemed to work OK...Could there be something different about your app set up?
I ended up using environment variables which work fine, but I'm curious why configuring the variables in an initializer doesn't work.
The gem will throw an error,
letsencrypt-rails-heroku is configured incorrectly. Are you missing an environment variable or other configuration? You should have a heroku_token, heroku_app and acme_email configured either via a `Letsencrypt.configure` block in an initializer or as environment variables.
But putting a block like below in an initializer doesn't seem to actually work?
Perhaps this is a Rails 5 specific bug, or I'm doing something silly syntactically.
Thanks for the useful gem!