Skip to content

Instantly share code, notes, and snippets.

View lexmag's full-sized avatar

Aleksei Magusev lexmag

  • Canada
View GitHub Profile
@lexmag
lexmag / app_start.ex
Last active November 19, 2020 15:10
Zen and the Art of Elixir Applications Monitoring
# We do this at compile-time as we don't have Mix available in releases.
@version Mix.Project.config().version
def start(_type, _args) do
#...
with {:ok, _} = result <- Supervisor.start_link(children, options) do
MyApp.Fluxter.write("start", version: @version)
result
end