Lessons learned from failing to access an environment variable in YMAL file
Note: The following was tested with Ruby 2.6.6 / Rails 5.2.6.
Situation
I tried to add an environment variable in the application.yml file.
# config/application.yml
default:
#...
API_TOKEN: ABC123456
And I expected when executing ENV['API_TOKEN...
lynnbright.com3 min read