Coder Social home page Coder Social logo

Comments (9)

mewpawee avatar mewpawee commented on June 11, 2024 3

I also have a problem with my Linux. I found that changing the argument of the frontstore service in docker-compose.yaml from --hostname to --host resolve this problem.

from saleor-platform.

prashantidealittechno avatar prashantidealittechno commented on June 11, 2024 1

For me, admin panel works but the website is not working. I tried it 3 times after remove all volumes and images via docker system prune -a and docker system prune --volumes. I waited a day about 8-9 hrs so that it can work but no changes. the URL 127.0.0.1:3000, 0.0.0.0:3000, localhost:3000 nothing works. rest is working fine.

from saleor-platform.

tyrozz avatar tyrozz commented on June 11, 2024 1

I got the same issue. I followed the exact steps in saleor-platform repo, the api and the dashboard were just working fine, but the storefront. I also changed from --hostname to --host and it worked. Actually in the docker-compose, it is also like this for the dashboard.

from saleor-platform.

Megidd avatar Megidd commented on June 11, 2024

@prashantidealittechno

Observations

Windows Docker tested a couple of days ago:

  • Backend API was fine
  • Dashboard threw NPM errors
  • Storefront threw NPM errors

Linux Docker tested yesterday:

  • Backend API is fine
  • Dashboard is fine
  • Storefront throws NPM warnings and doesn't load the storefront website

from saleor-platform.

Megidd avatar Megidd commented on June 11, 2024

As hinted by @ptmew , such a commit resolved the storefront issue on Linux:

diff --git a/docker-compose.yml b/docker-compose.yml
index c53b920..ac34d90 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -39,7 +39,9 @@ services:
     volumes:
       - ./saleor-storefront/:/app:cached
       - /app/node_modules/
-    command: npm start -- --hostname 0.0.0.0
+    command: npm start -- --host 0.0.0.0

Now the storefront is available at http://localhost:3000

image

I don't care about Windows anymore. So, I cannot test on the Windows platform.

from saleor-platform.

Megidd avatar Megidd commented on June 11, 2024

@ptmew Just curious, how did you figure out to replace --hostname with --host? Did you just randomly do trial-and-error? Did you have any hint from somewhere? What was your research process? Thanks!

from saleor-platform.

olegkorol avatar olegkorol commented on June 11, 2024

On MacOS the "frontstore" does not work even after changing --hostname to --host 😆 The rest works.

from saleor-platform.

krzysztofwolski avatar krzysztofwolski commented on June 11, 2024

Issue resolved

from saleor-platform.

tauseedzaman avatar tauseedzaman commented on June 11, 2024

hos

image

this is running via docker and configured on a domain.. but this api is running on a localhost on a server... any idea what wrong ?

from saleor-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.