Closed Cimmanuel closed 3 years ago
Did u solve the issue? @Cimmanuel
After going through lots of articles, I discovered this one, and this section made me realize the only thing that was wrong was the fact that I didn't expose port 8000 internally to other docker services. In my docker-compose
file, the web service was supposed to have...
...
...
expose:
- 8000
...
...
... in it. I added that and it was solved.
After going through lots of articles, I discovered this one, and this section made me realize the only thing that was wrong was the fact that I didn't expose port 8000 internally to other docker services. In my
docker-compose
file, the web service was supposed to have...... ... expose: - 8000 ... ...
... in it. I added that and it was solved.
@mohammed-sehweil check this out!
Hello! I recently deployed a project I'm working on to production. I use this great library and I have GraphQL Playground set up via
django-graphql-playground
. Everything works fine locally - there are no issues whatsoever. However, when I deployed I get the error below when I hit the Play button in Playground:I use Gunicorn with a Uvicorn worker class in production. I even used the Gunicorn command locally to see if the issue could be from there but it works. One thing to note is that the application is dockerized. Could it be from there? I don't think so because it works locally. Here's what my
docker-compose
file looks like:settings.py
urls.py
What could be wrong? I'm outta ideas. Thanks!