Yes i used it but it’s not showing anything and if i try to puts
into the console i get nil
value
Then it means that this value is not correctly initialized or retrieved. We need to find where there is a problem:
- Is it a typo in the environment variable?
- Is there a problem in the way environment variable is retrieved?
- Is there a problem with the secret value?
- Is there a problem in the initialization of forestLiana?
Regarding these points:
- I did not see any typo
- Can you use
puts
to logENV["APPLICATION_URL_FOREST"]
to check that we correctly get this value? - Can you share your
secrets.yml
with the different sections, but without the secret values? I would like to check that all sections (prod/dev) are correctly set. In addition to that, can you check that your application is correctly launched with the right environment (production/development) - Can you add a log when the liana is initialized to log the value of
Rails.application.secrets.forest_application_url
?
1 Like
Hello,
thanks for your answer and sorry for the delay i was unfortunately unable to do anything since the last time we spoke !
It worked, because of the secrets.yml, i didn’t add the APPLICATION_URL_FOREST to the staging env … my bad !
Thaks a lot for you help