I am trying to deploy my site to my locomotivecms site, everything is working but this its something to do with my carrier wave file could someone point out what is wrong with it.
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
Here is my 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
I had to go to the Iam section in the console and create a group and user which had connection to s3 and created a different access key and secret pass