I have set up a local_env.yml config file in my config directory.
And I have this in my applicaction.rb file
config.before_configuration do
env_file = File.join(Rails.root, 'config', 'local_env.yml')
YAML.load(File.open(env_file)).each do |key, value|
ENV[key.to_s] = value
end if File.exists?(env_file)
end
Can you clarify “I have this in my actionmailer config”?
Where exactly are you attempting to set those values? – we want to make sure that’s being done in a place where the before_configuration has already run.
Maybe try to do some logging/puts’ing from right where you are attempting to set, and be sure they are defined there?..
It looks like in your yaml config file you are setting values like GOOGLE_xxx, but then in your development.rb you are attempting to set from values like GMAIL_xxx…