我正在使用figaru将我的详细信息保密,而不是将其上传到heroku。
当我将我的应用程序推送到heroku时,我收到以下消息
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
ArgumentError: is not a recognized storage provider
carrierwave.rb
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => ENV["provider"],
:aws_access_key_id => ENV["aws_access_key_id"],
:aws_secret_access_key => ENV["aws_secret_access_key"]
}
config.fog_directory = 'website-name-prod' if Rails.env.production?
config.fog_directory = 'website-name-dev' if Rails.env.development?
end
application.yml
provider : AWS
aws_access_key_id : ************
aws_secret_access_key : ********************