Skip to content

Media isn't working locally when DEBUG is turned off #151

@g-londhe

Description

@g-londhe

How do I configure the saleor locally when DEBUG is off?

I made the following changes,

Generated and added secret_key and RSA_key in backend.env

Added the following variables to the API service

- API_URI=http://localhost:8000/graphql/
- DASHBOARD_URL=http://localhost:9000
- STOREFRONT_URL=http://localhost:3001
- ALLOWED_HOSTS=localhost,api
- ALLOWED_CLIENT_HOSTS=localhost,api
- DEBUG=False
- ENABLE_ACCOUNT_CONFIRMATION_BY_EMAIL=False

Outcome:

localhost:8000 stopped working, while localhost:8000/graphql is working fine.
Unable to see the media uploaded as a path to the media upload is localhost:8000
I have set up a saleor using the steps mentioned here -> https://saleor.io/open-source/

Kindly advise to make it work with docker-compose and DEBUG off.

Saleor version -> 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions