Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the node_name when there are multiple dynos on Heroku env? #70

Open
tomwang57 opened this issue Feb 4, 2024 · 0 comments
Open

Comments

@tomwang57
Copy link

tomwang57 commented Feb 4, 2024

I set up the redis adapter according to the doc and deployed it to Heroku where we have 2 dynos running like:

elixir --sname server -S mix phx.server

I didn't set the node_name manually to let it pick the one of --sname:

{Phoenix.PubSub,
        adapter: Phoenix.PubSub.Redis,
        url: System.get_env("REDIS_URL"),
        name: WebInterface.PubSub},

But it didn't work: messages still not sync between nodes. So am i missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant