我正在尝试将我的站点部署到我的 locomotivecms 站点,一切正常,但这与我的载波文件有关,有人可以指出它有什么问题。
CarrierWave.configure do |config|
config.cache_dir = File.join(Rails.root, 'tmp', 'uploads')
case Rails.env.to_sym
when :development
config.storage = :file
config.root = File.join(Rails.root, 'public')
when :production
# the following configuration works for Amazon S3
config.storage = :fog
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => 'AKIAI5GMSOQ',
:aws_secret_access_key => '1Q7g8TXCmFmmkS',
}
config.fog_directory = 'portfolioanders'
else
# settings for the local filesystem
config.storage = :file
config.root = File.join(Rails.root, 'public')
end
end
这是我的 wagon.log
* Reloaded "site", "content_types", "pages", "snippets", "content_entries", "translations" at 2013-10-07 23:59:47 -0700
The API key is invalid. (401)
unable to get an API token: The API key is invalid. (401)
* Reloaded "site", "content_types", "pages", "snippets", "content_entries", "translations" at 2013-10-08 00:02:07 -0700
* Reloaded "site", "content_types", "pages", "snippets", "content_entries", "translations" at 2013-10-08 15:43:41 -0700
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
* Reloaded "site", "content_types", "pages", "snippets", "content_entries", "translations" at 2013-10-08 19:53:34 -0700
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m
[0;31;49m error => Missing required arguments: aws_access_key_id, aws_secret_access_key
[0m