qoobaa / s3

Library for accessing S3 objects and buckets, supports EU and US buckets
MIT License
258 stars 112 forks source link

require "s3" on production. #105

Closed sunil-netsol closed 7 years ago

sunil-netsol commented 9 years ago

Hi, I am using gem 's3' in my project to delete the image from the AWS buicket. I have written code like this.Its working fine in development mode. require "s3" @university = University.find(params[:id])
@service = S3::Service.new(:access_key_id => CONFIG['provider_key'], :secret_access_key => CONFIG['provider_secret'])

But when i pushed this code to production showing me error.

LoadError: can not load such file "--s3"

Even its working fine with the rails c and irb.

Please let me know the solutions.

Thanks Sunil

GusGA commented 8 years ago

Check in your gemfile that the s3 gem is in production group