geofflane

geofflane

Phoeinx 1.3-rc Removed Application config_changed

I’m using distillery 1.4, edeliver 1.2.6, and coform 2.3.2 to deploy a clustered phoenix application.

In Phoenix 1.3-rc they have removed the config_changed function from the MyApp.Application module and recommend that it be removed in the the upgrade guide. Without that function it seems like digested asset paths are not updated on hot code upgrades. I was having trouble with hot upgrades and assets and so I added that function back in and that seems to have fixed the problem.

Does anyone have the same experience? Do you know why that’s no longer the default? Is this the correct approach?

Thanks.

Most Liked

gregvaughn

gregvaughn

I’ll revive this old thread because this is almost exactly what I came here searching for. We still have that config_change function in our Application module and it calls Endpoint.config/change but even though the hot deploy works at the Elixir level, the assets are 404-ing.

I understand the basics of the GenServer code_change callback, but I’m having difficulty tracking down advice on how the config_change is supposed to work. I’d appreciate any pointers to more discussion. I assume it’s supposed to be part of the appup file Distillery generates, but I still don’t quite see how the pieces fit yet.

Where Next?

Popular in Discussions Top

New
WolfDan
After doing a port from a c++ library to my project in phoenix I’ve seen that I need a faster way to run this algorithm and I found this ...
New
mmport80
I have put far too much effort into Dialyzer over the last year or so - and basically - I doubt it’s worth the effort. It’s not as easy ...
New
arcanemachine
https://nitter.net/josevalim/status/1744395345872683471 https://twitter.com/josevalim/status/1744395345872683471
New
Ankhers
Just a little information upfront. Generally speaking, if I feel like I need to either break a pipe chain or use an anonymous function in...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
PragTob
Hey everyone, this has been on my mind for some time and I’d love your input on it! TLDR: I feel like maps are superioer for storing and...
New
100phlecs
Are there any downsides, like perf issues, to putting all functional components in CoreComponents as long as you prefix it with the conte...
New
joeerl
I’m playing with Elixir - It’s fun. I think @rvirding does give Elixir courses these days. Re: files and database - when I given Erlang ...
New
kostonstyle
Hi all How can I compare haskell with elixir, included tools, webservices, ect. Thanks
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36128 110
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement