New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live reload doesn't work #1108
Comments
Can you provide more information? OS, browser console errors, server errors? Also make sure the host you are accessing from in the browser matches the :url host in dev.exs
|
this is from the file dec.exs
i run mix phoenix.server [error] backend port not found: :inotifywait
then i edit |
This is the issue:
Please see the backend installation docs here Reopen if you have issues. Thanks |
@chrismccord I am having an issue with live reload as well. Here is the console output
When I save a file I am not seeing anything recognising the change. I am using Ubuntu 14.04 LTS in a VM using Vagrant and Virtual box. Any ideas? |
the most likely culprit is you are editing source files on a shared host volume with the VM severing the app. Mix cannot cope with this because of mismatched ctimes/mtimes. The solution is to move the source inside the VM volume |
@chrismccord How would you add the source code inside the VM volume with vagrant? Doesn't that defeat the purpose? I'm having the same issue with the live reload with different languages. I've read your solution before, so I guess you're right. |
@fellz Just install it the required package depending upon your OS. I hope this might help to someone who didn't read documentation properly :) |
Is live_reload something that does not work with symlinked directories? |
Yes, it should. As Elixir symlinks by default but I guess it may depend on the OS. Which OS are you on? |
OSX 10.11.6 The setup I'm going for here is very unconventional, but is structured as follows:
Presently that last bullet is not what is happening and I can't figure out why. |
Phoenix doesn't watch your assets directory, it watches the directory where your artifacts are written to, usually in priv/static. |
Right, So what I've done is in the priv/static/js directory I've created another directory called "legacy" which is a directory symlinked to my angular projects directory where built assets are stored. What I was hoping is that live reloading would occur when assets change in that symlinked folder, but I'm not experiencing that. |
How do I completely disable inotifywait? This issue is causing a dockerized phoenix container I have to crash with a prod version of my project. Is there any way just to turn it off completely? Since the source and content are loaded in the container for a prod release, the content will not change, so I don't need any hot reloads. I would think that this is a dev-only feature that should not be required... |
@twajjo Unless you changed things, a Also, it should not crash, I run even dev things in docker with no problem whatsoever, so again it seems some information is missing? ^.^ |
I thought so. It seems the issue was in my Dockerfile. Always take the docker documentation with a grain of salt and examples provided by co-workers with a whole 5-lb. bag of it. Thanks. |
I'm having this issue, with a docker container. I'm on OSX, here's what I've tested that makes me confused - I volume map my code to the container. Startup log:
EDIT: I'm playing with this more, and found out that it's just because I have a |
Hi
I've tried to get phoenix up and running today with this
http://www.phoenixframework.org/docs/up-and-running
but live reload doesn't work.
Phoenix version 0.16.1
The text was updated successfully, but these errors were encountered: