-
Notifications
You must be signed in to change notification settings - Fork 888
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
Saleor does not load product images. #295
Comments
Seeing the same thing. Super weird. I wonder if I had the correct docker-compose.yml configuration before I even loaded it the first time, would this be an issue? |
@feliperosenek Basically you just need to update the domain name via a grapqhl mutation. e.g:
you can get your token with this mutation using your dashoboard email and password:
after I updated that and restarted the docker instance all my images are showing up and adding new ones started working |
This worked for me. Enter into Django shell.
Update site domain
Restart containers
Open in browser after clearing caches. |
When installing Saleor via Docker on Ubuntu 20 it does not load product images.
The only changes made were to the docker-compose.yml file
DASHBOARD_URL=http://216.238.116.173:9000/
-ALLOWED_HOSTS=localhost,api,216.238.116.173
MEDIA_URL=http://216.238.116.173:8000/media/
dashboard:
environment:
- API_URL=http://216.238.116.173:8000/graphql/
Even making changes to the Dashboard URL, the images still have "localhost:8000".
When you click on get image link, it looks like this http://localhost:8000/thumbnail/UHJvZHVjdE1lZGlhOjM4/4096/.
When I open the link in the browser and replace localhost with my IP, the image loads, and when I return to Saleor, it is there.
Only when opening the image link on another page and changing localhost to the IP does the image load, when I go back to Saleor and reload it, the image appears.
Could it be some kind of cache error?
The text was updated successfully, but these errors were encountered: