311 Members
Unofficial room for chatter about the Elixir language. This channel is publicly logged.62 Servers

Load older messages

8 Sep 2020
@dajole:matrix.orgdajole joined the room.01:25:29
9 Sep 2020
@lyle:menteeth.usIslandUsurperI need a sanity check, I think. I have a few pre-production Phoenix apps that I'd like to deploy to the same server for cost purposes. Does it make more sense to put nginx (or whatever) as a proxy in front or refactor them as a single Phoenix app, routing however I need to? 18:38:47
@MarqSven:matrix.orgMarqSvenI think nginx is the easier way 18:55:17
@lyle:menteeth.usIslandUsurper Or would it be weird to use Phoenix as a proxy, and use the forward/4 macro to send different requests to the different apps (which could be dependencies)? 19:05:55

I always prefer the reverse proxy approach.

Then I do not need to give root to the BEAM process for having 80 and 443.

@lyle:menteeth.usIslandUsurperI think it'll be a hybrid approach. Start with a new umbrella Phoenix proxy, and move the apps in from their individual folders.19:26:15
@lyle:menteeth.usIslandUsurperOtherwise, handling the static assets would be too much of a pain.19:26:48
@MarqSven:matrix.orgMarqSvenThis would be easier to accomplish with router.ex just have one application/ and forward to the next module 20:02:28
@lyle:menteeth.usIslandUsurperThanks. I actually realized in the meantime that one of these apps is already an umbrella project, so I'm just going to factor everything else into that one Phoenix app.20:37:16
10 Sep 2020
@zolk3ri:matrix.orgzolk3ri changed their display name from zolk3ri to zolk3ri[m].03:14:06
@zolk3ri:matrix.orgzolk3ri changed their display name from zolk3ri[m] to zolk3ri.03:14:23
11 Sep 2020
@mighty-pirate:matrix.orgtm--st changed their display name from tm--s to tm--st.17:50:35
13 Sep 2020
@ddowl:matrix.orgddowl joined the room.08:23:07
14 Sep 2020

Geez. Looks like mix can find idna 6.0.1, but rebar3 can't, so I can't compile hackney. Any idea what I can do?

** (Mix) Could not compile dependency :hackney, "~/.mix/rebar3 bare compile --paths="~/projects/foo/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile hackney", update it with "mix deps.update hackney" or clean it with "mix deps.clean hackney"

@lyle:menteeth.usIslandUsurper mix deps.get idna and mix deps.compile idna both work. 14:56:33
@lyle:menteeth.usIslandUsurper Wellp, running mix local.rebar again fixed it. Glad I found https://github.com/benoitc/hackney/issues/649 for the idea. 15:30:57
15 Sep 2020
@hubert:uhoreg.cauhoreg I have a Protocol, and some implementations may have a process associated, which may want to be run under a Supervisor. Are there any good patterns I can follow? 13:10:18
@hubert:uhoreg.cauhoreg Right now, I just have a start_link function that behaves like a normal start_link, and then I have a function that takes the pid from process that was started and returns the struct that implements the Protocol. It works, but doesn't feel that great. 13:12:32
@nloadholtes:matrix.orgnloadholtes joined the room.15:34:59
16 Sep 2020
@ben:synod.im@ben:synod.im left the room.22:56:34
17 Sep 2020
@crqra:matrix.orgcrqra joined the room.19:44:32
21 Sep 2020
@vinny.:matrix.orgvny. joined the room.15:18:21
@vinny.:matrix.orgvny. changed their display name from vinny. to vny..15:18:42
@vinny.:matrix.orgvny. set a profile picture.15:20:20
@vinny.:matrix.orgvny.Hello guys, I have a few questions as a completely new elixir newbie. I currently have a Javascript app using the nodejs engine that I want to migrate to elixir to use the Phoenix live view as the main reason. The nodejs app is fairly simple, it takes json html responses from multiple powershell scripts and keep them in memory and send it back to the client when someone is asking for the data. I'm currently using genserver to keep the state of variable for testing purposes but what should I use to keep json data in memory just like I do with genserver and a variable? Thanks! 15:42:22
@hubert:uhoreg.cauhoreg If you're just storing, updating, and fetching data, you could use Agent if you just want to keep it in memory. Alternatively, you could use Erlang's ets. 15:55:30
@vinny.:matrix.orgvny. Looking at `Agent` it looks like the thing I need to keep my data in memory the way I want. Thanks uhoreg 16:00:43
@Nicd-:matrix.orgNicd-note that Agent, like GenServer, is a single process. that may or may not be a bottleneck16:09:44
@vinny.:matrix.orgvny.That's good to know, I don't think it's that big of a deal however since I only have a handful of users using this app.16:46:04
@darkharmony9999:matrix.orgdarkharmony9999 joined the room.19:33:00

There are no newer messages yet.

Back to Room List