Frontend is Blank when running Docker Container #130
-
Hello Kinngh, I am facing an issue while deploying. This is my first time doing it with Shopify so I might be doing something wrong. I have dockerized my frontend, backend and db (react, express and mongo) and ran them through docker-compose. I have a proxy that connects the backend to the frontend and nginx to run the frontend and the proxy. In my frontend, I am exposing port 80 and the output port is 3001. For my backend, the exposed port is 3000 and the output port is 3000 as well. Everything is working when I run the command The issue is after the app is installed. When a user (me in this case) opens the app in Shopify it’s just blank. My docker logs show that my frontend is working fine. But nothing appears on my screen, it’s just a white page. Something to note, I am running the docker container on my local machine and am using Cloudflare for the URL, when I put it on a server, I'll change the URLs to my domain. If you need any code or logs or anything else, please tell me. In the end, I want to deploy this on AWS. Thank you for the template Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't use docket so cannot provide any support. |
Beta Was this translation helpful? Give feedback.
Thank you for your help Kinngh.
I have fixed the issue. My nginx.conf file did not have
mime
included and so my console was giving an error while running js and giving the mime error.Nonetheless thank you for your time and help.