blset
When creating a new project with
mix phx.new proj --umbrella
the phoenix_pubsub dependency is placed in the mix.exs of the proj app and not under the proj_web app.
but that seems against app isolation. since the proj app, in the idea, should have no dependency on phoenix nor any web consideration.
more over when manually placing the phoenix pub_sub in the proj_web mix.exs and adjusting the config of the umbrella config, it does not work with message
unknown registry: ProjWeb.PubSub
how to make i work with phoenix_pubsub under the web app ?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Marked As Solved- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
LostKobrakai
Here’s the place it’s started for a single project phoenix app:
And here for the umbrella version:
Also Liked
josefrichter
I would like to add this here for future reference:
I ran into this problem while going thru Programming Phoenix 1.4 book, Chapter 11, section Extracting Rumbl and RumblWeb, page 238 very bottom.
The error encountered is this (adding to be google-able):
The exact solution based on this thread seems to be editing
/rumbl_umbrella/apps/rumbl/lib/rumbl/application.exso that the children there are:The file
/rumbl_umbrella/config/config.exssays that the pub_sub server for rumbl_web is thisso then I also changed
/rumbl_umbrella/apps/rumbl_web/lib/rumbl_web/channels/presence.exso that it starts withUpon all these changes it seems to work (despite having some “connection refused” messages in console). Long story short, seems like one needs
Rumbl.PubSubconsistently everywhere.Hope this helps somebody.
NobbZ
PubSub, even though used by the channels, is not a web concern. It is to send (publish) messages to a couple of subscribers, in a way that the publisher does not need to know the subscribers, while also the subscribers do not need to know the publisher(s) in advance.
It can be used for a lot more things than just “web”.
Thomas-Sciaroni
In addition to what Jose mentioned, I also needed to update the children in
./rumbl_umbrella/apps/rumbl_web/lib/rumbl_web/application.exby adding
otherwise I was getting the error:
Last Post!
Arkanym
Thank you, @josefrichter, that worked!