This Week's Trending
This Month's Trending
This Year's Trending
Is there any way to handle task termination gracefully?
When i do ctrl-c no form for shutdown hook is called in the task. I have yet to ...
New
I have a mix task that does some stuff, and in the end it created a shell command that I want to run. The command can be something that w...
New
I have a mix app, and the following snippet in runtime.exs:
if config_env() == :prod do
# ...
phx_ip = case System.get_env("PHX_IP",...
New
Last Three Year's Trending
Every freshly generated Phoenix project sports a seeds file priv/repo/seeds.exs and an accompanying mix alias ecto.setup to apply those s...
New
I have an app with the following structure:
mix.exs
lib
|_my_app.ex
|_mix/tasks/my_mix_task.ex
The file lib/my_app.ex defines a mod...
New
How to execute custom task in mix releases step?
In mix.exs:
releases: [
myapp: [
overwrite: true,
in...
New
Hi,
I have write severals tasks for my project.
The live in /lib/mix/tasks and are working.
What I am looking for is a mix command (or...
New
Ruby on Rails has a rails db:prepare command. It migrates the database, if it exists, else it creates it, migrates it (or loads the schem...
New
I have a number of different notifications, each identified by an id (example “ticket_closed”).
This ID can later be used to select the ...
New
In my mix.exs file, if I try to create an alias with a hex mix task, for example hex.audit or hex.outdated, I get an error saying the tas...
New
In the examples for using mix phx.gen.html (and gen.schema) the schema usually has only one or two fields, e.g. from the docs:
mix phx.g...
New
On Elixir 1.15, calling Mix.Task.run("app.config") prevents calling other modules from my tool.
The tool is installed globally with mix ...
New
Originally sent in Elixir Chat
Myriam2002
hey! I am new to this community :) I am having trouble with versions and dependencies ...
New
I’m using a custom mix task to download a binary dependency we have. I also wish to use that binary dependency as part of a pre-compile ...
New
I have a Mix.Task I am writing. This is a generic Task runner task, where what it does depends entirely on the project configuration. As ...
New
Hello,
I’m trying to run stuff with a mix task, and I cannot start the application. But I can add the @requirements ["app.config"] bit. ...
New
Trending Over Three Years
I want to run a specific migration file but I want it to keep its pending status on next call of ecto_migrate.
Please, is quiet the righ...
New
I have a custom mix task that I want to use like mix foo.bar 123 where 123 is a command-line argument. How do I get that? I’m striking ...
New
I have an umbrella project that has lots of Phoenix apps, background workers, etc. Releases work great for deployment when you only want ...
New
Hello everyone,
I wrote a Mix.Task that’s supposed to be run in a specific environment (:test) and nowhere else.
The task uses depende...
New
Hello all! I’m in the process of writing an application with a couple moving parts, but unit testing it is making me question everything....
New
Background
So I am using this library mix-test.watch from @lpil which I really like.
Usually I just run mix test.watch and I let the pro...
New
I’m wanting to start a new Elixir/Phoenix application and wanted to confirm my understanding of how I should execute the mix tasks in ord...
New
I’ve used Logger.metadata before (along the lines of this post), but I’m having some trouble making it work from within a Mix task.
Assu...
New
Hi,
I need to select a local SQLite database outside my Phoenix project.
So I set some configuration options based on enviroment variab...
New
How can I pass command line arguments with a mix release?
Once an elixir application is built using mix release.init followed by MIX_EN...
New
Suppose, we provide the github link in the mix file. If the github repository is updated, how do I update the same in my application?
I ...
New
I am writing a new (sub)task for the hex client, which I have some trouble testing.
The task has some output, using which I need to make...
New
Hi,
I am trying out the script from dashbits new blogpost https://dashbit.co/blog/rewriting-imports-to-aliases-with-compilation-tracers ...
New
I understand that the @moduledoc text is what gets shown when you type in mix help your.task:
https://hexdocs.pm/mix/Mix.Task.html
Is t...
New
Is there a way to make a mix task available without compiling my (umbrella) project first?
I tried making it an .exs file, but that didn...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







