In my Rails app I\'m letting users upload an image when they create a \"release\", and it should upload directly to S3. I\'m getting the following error in both development and
Add this to your application.rb file inside the module and class. create a local_env.yml
file and put your environment variables in there. This code will load your environment variables on server start :
config.autoload_paths += %W(#{config.root}/lib)
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