Latest #mix-tasks Threads 
LLMs tend top produce a lot of CSS, and rarely clean it up. This is a mix task and a script to analyze your css and remove some of it.
C...
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
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
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
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
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
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
I’d like to introduce WhyRecompile, a library provides utilities to work with Elixir files dependency graph. This aims to complement the ...
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
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
LLMs tend top produce a lot of CSS, and rarely clean it up. This is a mix task and a script to analyze your css and remove some of it.
C...
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
Hello.
I have just published a new package named ex_license to manage license headers injection in the Elixir code source files.
While ...
New
phx_test
Inspired by this topic by @caleb-bb, I’ve been working on a little experiment called phx_test. The question was “how do I write ...
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
At my work we build a lot of mix tasks for backfills and other maintenance tasks. Even with OptionParser we seem to copy a lot of boilerp...
New
I’d like to introduce WhyRecompile, a library provides utilities to work with Elixir files dependency graph. This aims to complement the ...
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
Hey all,
I created a phx.gen.tailwind Mix task that adds Node + TailwindCSS to a new Phoenix project. Essentially, it does the following...
New
Hello,
I’ve been working with Elixir and Phoenix for 4 years, but I keep forgetting about the phoenix phx.new task tags, such as --no-ec...
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
I got fed up with removing unused aliases manually so made a package for it: GitHub - KristerV/remove_unused_ex: Remove unused aliases an...
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:
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







