简体   繁体   中英

Trying to figure out deploy error with locomotivecms

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

我必须转到控制台的Iam部分,并创建与s3连接并创建了不同的访问密钥和秘密密码的组和用户。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM