Latest #mix-tasks Threads Top

dmitriid
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
James_E
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
sezaru
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
lud
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
gilbertbw
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
jarlah
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
ccavolt
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
Goose97
I’d like to introduce WhyRecompile, a library provides utilities to work with Elixir files dependency graph. This aims to complement the ...
New
Eiji
Originally sent in Elixir Chat Myriam2002 hey! I am new to this community :) I am having trouble with versions and dependencies ...
New
peoj
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 Top

This Month's Trending Top

This Year's Trending Top

jarlah
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
sezaru
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
James_E
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
dmitriid
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 Top

cgrothaus
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
smanza
Hello. I have just published a new package named ex_license to manage license headers injection in the Elixir code source files. While ...
New
msimonborg
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
stevensonmt
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
pertsevds
How to execute custom task in mix releases step? In mix.exs: releases: [ myapp: [ overwrite: true, in...
New
derheap
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
cgrothaus
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
larshei
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
ccavolt
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
RemyXRenard
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
lud
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
Eiji
Originally sent in Elixir Chat Myriam2002 hey! I am new to this community :) I am having trouble with versions and dependencies ...
New
peoj
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
brettbeatty
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
Goose97
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 Top

Kurisu
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
fireproofsocks
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
cjbottaro
I have an umbrella project that has lots of Phoenix apps, background workers, etc. Releases work great for deployment when you only want ...
New
trisolaran
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
kevinlang
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
Mazyod
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
micah
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
Fl4m3Ph03n1x
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
mat_garland_1
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
fireproofsocks
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
derheap
Hi, I need to select a local SQLite database outside my Phoenix project. So I set some configuration options based on enviroment variab...
New
owaisqayum
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
cvkmohan
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
Benjamin-Philip
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
KristerV
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement