You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to your list of child applications, and then try to start the application in development mode (for example with iex -S mix), you will get an error from this line:
ifnode_namein[nil,:nonode@nohost]doraiseArgumentError,":node_name is a required option for unnamed nodes"end
I hacked around this by doing the following:
children=[{Phoenix.PubSub,[name: Philomena.PubSub,adapter: Phoenix.PubSub.Redis,node_name: valid_node_name(node())]}]# Redis adapter really really wants you to have a unique node name,# so just fake one if iex is being starteddefpvalid_node_name(node)whennodein[nil,:nonode@nohost],do: Base.encode16(:crypto.strong_rand_bytes(6))defpvalid_node_name(node),do: node
Surely there must be a better way?
The text was updated successfully, but these errors were encountered:
I guess with this issue I am asking why it matters for this library. If the entire point is connecting to a named redis instance, why can't the node just be anonymous?
If you add
to your list of child applications, and then try to start the application in development mode (for example with
iex -S mix
), you will get an error from this line:I hacked around this by doing the following:
Surely there must be a better way?
The text was updated successfully, but these errors were encountered: