Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
其他问题回答了如何使用 ENV 变量打开(和保存)Fog 连接,或者如何使用 ENV 变量配置 Carrierwave,但我想在一个地方通用地设置 Fog 凭据。
Fog.credentials = { :aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'], :aws_secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'], }