roostercrab

roostercrab

Trying to trace a request through each function

I’m watching Chris McCord’s original video on his design for Phoenix and I’m trying to follow along with the files that he is looking at because I really want to be able to follow a request from beginning to end, but I assume a lot of the files have changed their names and/or locations and/or purpose; or I’m just looking in completely the wrong place!

Just as an example, he mentions a file called mapper.ex that I can’t find in my generated app. Is it somewhere inside the actual phoenix installation? If so…then where is that?

Most Liked

sabiwara

sabiwara

Elixir Core Team

This video is fairly old, I believe that Phoenix project structure has indeed evolved quite a bit since 2014 :wink:
So if you used the latest version of the generator, you probably won’t be able to follow it, I’d suggest either some more up-to-date material, or if you really want to follow this video to use the same version?

I tried to find the equivalent of mapper.ex in today’s phoenix, I think it now lives under Phoenix.Router and is not part of the generated code anymore: phoenix/lib/phoenix/router.ex at main · phoenixframework/phoenix · GitHub

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement