Git Product home page Git Product logo

Comments (5)

jkarneges avatar jkarneges commented on August 25, 2024

Hi, make sure the client connects to Pushpin. :)

from django-eventstream.

bogdan-calapod avatar bogdan-calapod commented on August 25, 2024

Hey there,

I'm hitting the same issue and I think I am missing something very obvious here.

My setup is as follows:

pushpin container <- django container with supervisord/gunicorn and 3 workers -> nginx -> frontend

The nginx container proxies all requests that come in the /api/ url to the django container. I can ping the pushpin container from the backend container.

Am I correct in saying that I need to make the nginx server forward the URLs defined in the asgi.py file to the pushpin container ?

I never worked with pushpin before, but reading their documentation it seems that it should just plug in and work without too much configuration, so clearly I'm missing something obvious.

I'd gladly make a PR with more detailed steps for pushpin setup if I get it to work :D

from django-eventstream.

jkarneges avatar jkarneges commented on August 25, 2024

Hi @bogdan-calapod, Pushpin goes in front of the Django app, not behind it. Nginx should forward requests to Pushpin, and Pushpin should forward requests to the app.

from django-eventstream.

bogdan-calapod avatar bogdan-calapod commented on August 25, 2024

Oooh, that makes sense - from what I can see, pushpin forwards everything to the backend specified in the routes/ file, and only does streams or anything else if the backend server instructs it to. I'll tinker with it a bit and see if I make it work. Thanks!

from django-eventstream.

bogdan-calapod avatar bogdan-calapod commented on August 25, 2024

Managed to get it working - opened #113 with what I felt was missing in order to get PushPin working :D

from django-eventstream.

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.