Hey everybody ! I m’ using solidus and I have a pr...
# support
s
Hey everybody ! I m’ using solidus and I have a problem storing my images on heroku using AWS S3. I created a bucket. Have my access key id and my secret access keystored in a .env file and in heroku config vars , switched my storage to :amazon. All I have is Application Error. I ’ve not found a good documentation about how to store images on Heroku with s3 Can you help me please ? Thank you
g
I ’ve not found a good documentation about how to store images on Heroku with s3
Hello @Sébastien Ternest! Have you tried this guide from Heroku? https://devcenter.heroku.com/articles/paperclip-s3
s
Thank you. I just tried but it’s not working. I ’ve tried cloudinary like this but I ve “Application error”
g
Can you share the link to the Cloudinary tutorial/guide that you are following?
s
it belongs to Le Wagn school. I can’t give you the link Sorry
*Le wagon
But I can call you if you want
g
I see. It seems the issue you're having is more concerned with your Cloudinary step instead of Solidus. If I were having the issue you're having, I would probably test Cloudinary first on a simple Rails app without Solidus. If I'm still getting the application error, I would ask for help from Le Wagon or Cloudinary.
s
I know this code works. I ve used it on 2 other apps
g
Okay. Can you share us a screenshot of the application error? An error number or more detailed error message would be helpful.
s
I ve tried to follow the video from Sean Denny “solidus from 0 to production”.. Could you tell me if there is something wrong here please ? Thank you if ENV[‘CLOUDINARY_URL’] || ENV[‘HEROKU’] require ‘paperclip/cloudinary’ PaperclipAttachment.default_options[:storage] = :cloudinary Spree:Image.attachment definitions[arrachment].delete(:url) Spree:Image.attachment definitions[arrachment].delete(:path) Spree:Image.attachment definitions[arrachment].delete(:default_url) Spree:Image.attachment definitions[arrachment].[:path] ‘spree/product/id/style/:filename’ Spree:Image.attachment definitions[arrachment].[:cloudinary_url_options] { default{secure true} } end
Sean Denny’video is unreadable 😞
g
Okay, I'll watch the "solidus from 0 to production" and I'll give it a try. I'll get back to you, but it might take a couple of days.
s
It’s at 8:50
g
Okay, thanks!
s
It’s been days and days that I’m stuc with this problem
Why isn’t there a good doc about how to upload images ? This didn’t work https://guides.solidus.io/getting-started/deploying-your-store
Thanks for helping me @George Mendoza!
g
We're in the process of improving the guides. It would make sense to provide more details on setting up image upload in production. cc @kennyadsl I'm assuming that you are only seeing this Application error in production. Is that correct? That is, are you able to get the image uploads working in your development machine?
s
Problem settled !
g
Nice @Sébastien Ternest! Good to hear you figured it out!
s
Thank you !