Skip to content

Not able to install Apps #214

Answered by przlada
chowadfrepo asked this question in Q&A
Feb 27, 2023 · 4 comments · 12 replies
Discussion options

You must be logged in to vote

Hi, I think that changing Saleor's domain from the default localhost:8000 will solve your problem. Let's say you are hosting Saleor at example.com. You can do that with shopDomainUpdate mutation:

mutation ShopDomainUpdate{
  shopDomainUpdate(input: {domain: "example.com"}){
    shop{
      domain{
        host
      }
    }
  }
}

or by starting the Django shell (python manage.py migrate) and running:

from django.contrib.sites.models import Site
site = Site.objects.get_current()
site.domain = "example.com"
site.save()

also, remember to properly set ENABLE_SSL environment variable (True if you are using https) and to restart Saleor instances as Site objects are cached in memory. ENABLE_SSL

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@chowadfrepo
Comment options

@peelar
Comment options

peelar Feb 28, 2023
Collaborator

@krzysztofwolski
Comment options

@lkostrowski
Comment options

Comment options

You must be logged in to vote
4 replies
@lkostrowski
Comment options

@chowadfrepo
Comment options

@lkostrowski
Comment options

@chowadfrepo
Comment options

Comment options

You must be logged in to vote
1 reply
@lkostrowski
Comment options

Comment options

You must be logged in to vote
3 replies
@wackyesolution
Comment options

@przlada
Comment options

@wackyesolution
Comment options

Answer selected by przlada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants