试图找出机车CMS的部署错误



我正在尝试将我的站点部署到我的机车 cms 站点,一切正常,但这与我的载波文件有关,有人可以指出它有什么问题。

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

这是我的马车.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 并创建不同访问密钥和秘密通行证的组和用户

相关内容

  • 没有找到相关文章

最新更新