Errno :: ENOENT(没有这样的文件或目录@ rb_sysopen - aws.yml)

时间:2017-11-17 19:42:31

标签: ruby-on-rails ruby amazon-web-services amazon-s3 aws-ebs

站点部署在aws弹性beantalk

aws.yml

wp_posts
--------
ID
post_status

wp_termrelationships
--------------------
object_id
term_taxonomy_id

production.rb

 production:
  access_key_id: 123333231331....
  secret_access_key: 12212dddddd........

我还在s3存储桶中授予公共访问权限。

  config.paperclip_defaults = {
  :storage => :s3,
  :preserve_files => true,
  :s3_credentials => 'aws.yml',
  :s3_region => 'ap-south-1',
  :s3_host_name => 's3.ap-south-1.amazonaws.com',
  :bucket => 'xxxxxx'
}

...宝石

anyone: read write
配置文件夹中的

aws.yml文件夹 - config / aws.yml

1 个答案:

答案 0 :(得分:0)

看起来应用程序没有找到您的S3凭据文件。在default['poise-javascript']['options']['version'] = '8.9.1' 中,尝试为其提供文件的完整路径:

production.rb