geofflane
Phoenix Recompiling / Redefining module every page load
I’ve been playing with Ubuntu 17.04 in a VMware VM and pulled in one of my Phoenix projects (Phoenix 1.3-rc, Elixir 1.4.2, Erlang 19.2.1). It pulls the deps fine, compiles fine, and runs the tests fine. But when I load a Phoenix page in my browser it recompiles the whole application and gives a bunch of warnings about redefining module. It does this over and over for every page load and, of course, it’s super slow because of that.
warning: redefining module Molly.Integration.Server (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.Integration.Server.beam)
lib/molly/integration/server.ex:1
warning: redefining module Molly.Web.Api.PlayerView (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.Web.Api.PlayerView.beam)
lib/molly/web/views/api/player_view.ex:1
warning: redefining module Molly.Web.Api.PackageView (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.Web.Api.PackageView.beam)
lib/molly/web/views/api/package_view.ex:1
warning: redefining module Molly.FranchisePreferredPackage (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.FranchisePreferredPackage.beam)
lib/molly/core/franchise_preferred_packages.ex:1
Has anyone seen anything like this? Thanks!
Most Liked
benwilson512
Author of Craft GraphQL APIs in Elixir with Absinthe
romenigld
this worked for me.
But I was seeking on the internet and I saw this command:
mix do clean, phx.server
1
Popular in Questions
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this:
...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Other popular topics
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
New
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #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
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









