sergio
Sending your deploy markers to Appsignal from a Phoenix app.
AppSignal deploy markers are a way to keep track of what git commit the bug happened, or when the slowdown started appearing in your app.
As long as you have an APP_REVISION environment variable set, you will send it to Appsignal through the integration library.
In the case of Railway you can quite easily add the variable to your Dockerfile and have everything work out nicely in 2 lines.
Railway even provides the variable automatically for you.
# At the very end of your Dockerfile:
# This is a variable Railway automatically exposes.
# Add the variable.
ARG RAILWAY_GIT_COMMIT_SHA
# Use the variable
ENV APP_REVISION=$RAILWAY_GIT_COMMIT_SHA
CMD ["/app/bin/server"]
And that’s it. Deploy markers will now work for you.
Most Liked
almirsarajcic
Here’s how to do it for regular Elixir/Phoenix apps.
4
Popular in Guides/Tuts
If you want to use the MongoDB in your next Killer-App-Project, but you did not dare ask because otherwise many would advise you to use P...
New
Greetings fellow alchemists !
I have started to write an open-source interpreter in Elixir (https://github.com/nicolasdilley/dwarf-inter...
New
https://sergiotapia.me/generate-images-with-name-initials-using-elixir-and-imagemagick-374eca4d14ff
Hope this saves you guys some time!...
New
Wrote this guide on how to integrate DropzoneJS with Phoenix Liveview. Hope it helps someone out!
https://sergiotapia.com/dropzonejs-dir...
New
When we were figuring out how to use Phoenix LiveView we got stuck a few times.
So in order to save other people time, we created a comp...
New
In a quest to optimize the amount of data sent between the server and client I recently decided to try to use MessagePack instead of JSON...
New
So here is the code I came up with to generically generate an array param that will be stored on a jsonb property in ecto.
It only handl...
New
I’ll post this here, It might help someone in the future.
Feedback is greatly appreciated.
I use it with direnv on NixOS, It should wor...
New
I recently got inertia-phoenix (an Inertia.js adapter for Phoenix) working with Svelte. Setting up the server-side rendering (SSR) with S...
New
..or as and when you can think of one :icon_cool:
This thread my also be of interest: What took you way too long to figure out? :003:
New
Other popular topics
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
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
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
What is most correct way to open, read and parse JSON file with poison?
For example if we have example.json file in root of some projec...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
Hey :wave:t3: Elixir community,
I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New








