Skip to content

Instantly share code, notes, and snippets.

@srockstyle
Created February 12, 2014 02:59
Show Gist options
  • Select an option

  • Save srockstyle/8949251 to your computer and use it in GitHub Desktop.

Select an option

Save srockstyle/8949251 to your computer and use it in GitHub Desktop.
paperclipでS3にアップするとき「AWS::S3::Errors::PermanentRedirect」なんて怒られたら ref: http://qiita.com/srockstyle/items/50060606141b042355eb
AWS::S3::Errors::PermanentRedirect (The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.):」
has_attached_file :file,
:storage => :s3,
:s3_credentials => {
:access_key_id => S3KEY,
:secret_access_key => S3SECRET,
:s3_host_name => "s3-ap-northeast-1.amazonaws.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment