menu

Saleor Commerce

The world’s fastest growing open-source e-commerce platform with billions of dollars transacted. Powered by Python, GraphQL, ReactJS and PWA.

Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Design
view-forward
# Development
view-forward
# Saleor Features
view-forward
Team

Static Assets and Media Production Issues w/ S3

June 3, 2020 at 5:07am

Static Assets and Media Production Issues w/ S3

June 3, 2020 at 5:07am
I do have some static assets appearing, but I am not sure where to get the other static assets to put on S3. In addition, no thumbnails are showing up. See in the link below what it looks like. https://sad-mestorf-27b692.netlify.app/
I have set the following env variables on Heroku:
AWS_ACCESS_KEY_ID = ... AWS_MEDIA_BUCKET_NAME = my-bucket AWS_S3_REGION_NAME = us-east-1 AWS_SECRET_ACCESS_KEY = ... AWS_STORAGE_BUCKET_NAME = my-bucket

June 3, 2020 at 5:35am
Solved.
After you put in those correct environment variables and Heroku builds you should see static files in your S3 bucket... Now run...
heroku run python manage.py populatedb
You will now see some new folders...Now run...
heroku run python manage.py create_thumbnails
Some may fail due to not actually being provided in the repo I think. Now make sure your folders are public and CORS is setup so the images can be fetched.
Hard Reload your storefront and BAM, images from S3.
like-fill
2
  • reply
  • like
I think once I get deployed and I am able to sell at least 1 product through my Saleor e-commerce store, I will feel qualified enough to submit documentation on deployment.
like-fill
1
  • reply
  • like
Happy to here that the issue has been solved! If you could help us with some tutorial/documentation that would be great. If you have more questions, just let us know.
  • reply
  • like

June 7, 2020 at 8:21pm
How would I go about adding to the official documentation? I assume this will get reviewed as well?
  • reply
  • like

June 8, 2020 at 8:01am
You can send me via PM and then we'll review it.
Edited
like-fill
1
  • reply
  • like