Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3_region is not inherited from Core in Images and Resources engines #1686

Closed
bartocc opened this issue May 23, 2012 · 1 comment
Closed

Comments

@bartocc
Copy link
Contributor

bartocc commented May 23, 2012

If your s3 bucket does not have the default "us-east-1" location, you won't be able to upload images or resources to S3 even if ENV[S3_REGION] is correctly set

You'll get a Excon::Errors::SocketError with the message

hostname was not match with the server certificate

You can see in those 2 files that there is no def s3_region class method defined

  • images/lib/refinery/images/configuration.rb
  • resources/lib/refinery/images/configuration.rb

To manually fix the issue, modify those files in your refinery project :

  • config/initializers/refinery/images.rb
  • config/initializers/refinery/resources.rb

and add this line

config.s3_region = Refinery::Core.s3_region
@ugisozols
Copy link
Member

Closed by #1687.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants