mindreader

mindreader

I just want to save a file and auto recompile, nothing more, no restarting, no plugs. We have an application that is just normal elixir without phoenix or live view or external assets. This may be answered somewhere, but I cannot find it anywhere because there are so many posts about live reloading not working in the contexts of these other projects.

We’ve been using for years a program we wrote ourselves, rl | Hex which is notable by how incredibly bad it is. If you have multiple nodes up clustered they both recompile and fight each other. Sometimes I wake up in the morning and my cpu is at 100% because it is just spinning for no good reason. Rarely it just stops working entirely until I restart it.

I tried phoenix_code_reloader, but looking at it, I can’t see where it actually recompiles anything and indeed it doesn’t seem to do anything without additional configuration involving endpoints that don’t exist in my project.

Showing Posts 1 to 5

adamcstephens

adamcstephens

Lettuce seems to provide this capability.

axelson

axelson

Scenic Core Team

Yeah Phoenix.CodeReloader is a little hard to follow. The actual compilation happens on line 307 of Phoenix.CodeReloader.Server (and is tied to phoenix configuration):
https://github.com/phoenixframework/phoenix/blob/dfb0c00d2077e10f8df6cc6e334e04924c4c2bcd/lib/phoenix/code_reloader/server.ex#L307

When I want to recompile my code on any changes I use exsync (I’m also a maintainer):
https://github.com/falood/exsync/

One great benefit of exsync is that if you use path: dependencies then they’ll automatically be recompiled for you with no additional configuration needed (with phoenix you need to manually set :reloadable_apps).

mindreader

mindreader OP

Lettuce looks a bit primitive, but exsync actually may be a real improvement over what I use. I will give it a spin soon and see how well it works.

emadb

emadb

We are using remixed_remix | Hex and it’s working quite well.

D4no0

D4no0

You can also take a look at BigBrother — BigBrother v0.1.0. I did it a while ago by extracting the recompilation part from phoenix.

If you need support for this specific library, feel free to contact me.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews