Amazon s3 + paperclip - AWS :: S3 :: NoSuchBucket

Ive used Uploadify and paperclip in Rails3 and Im getting this error -

AWS :: S3 :: NoSuchBucket (the specified bucket does not exist):

app / controllers / cards_controller.rb: 79: in `create '

app / controllers / cards_controller.rb: 78: in `create '

app / middleware / flash_session_cookie_middleware.rb: 16: in `call '

My s3.yml file

-----------------

development: bucket: bucket-dev access_key_id: ### secret_access_key: ### test: bucket: bucket test access_key_id: ### secret_access_key: ### production: bucket: bucket-pro access_key_id: ### secret_access_key: # ##

-----------------

and the model has -

-----------------

has_attached_file: photo,

: storage =>: s3,

: s3_credentials => "# {:: Rails.root.to_s} /config/s3.yml",

: path => "/: style /: filename",

: styles = > {: medium = > "300 × 300 > ",: thumb = > "100 × 100 > " }

-----------------

+3
2

Safalmj, , S3, "bucket-test" "bucket-pro"? , AWS .

+1

. . - , , . 1 , . , - . - , , ... ...

0

Source: https://habr.com/ru/post/1765798/


All Articles