<div dir="ltr">Yeah, that's how I expected it to work. I'll see if I can identify how vagrant is causing me problems.<div><br></div><div>Didn't know about "make run", thanks :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 September 2015 at 15:39, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Wait, I'm dumb. These steps also work:<br>
<br>
Running the release, opening the website and seeing ohai, editing the file with some extra text, reloading, seeing the extra text.<div class="HOEnZb"><div class="h5"><br>
<br>
On 09/24/2015 04:35 PM, Loïc Hoguin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Running the release, stopping it, editing the file, running the release<br>
again works here. I suspect something related to Vagrant.<br>
<br>
Also I suggest 'make run' rather than your start.sh.<br>
<br>
On 09/23/2015 07:45 PM, Graham Hay wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was fiddling with some js, and got tired of restarting the server. I<br>
was under the<br>
impression that using dev_mode with relx was the solution to this<br>
problem, but<br>
I can't seem to get it to work. I have an example here:<br>
<br>
<a href="https://github.com/grahamrhay/cowboy_devmode" rel="noreferrer" target="_blank">https://github.com/grahamrhay/cowboy_devmode</a><br>
<br>
If I look in _rel, the lib folder for my app is a symlink, as expected.<br>
Yet when I change<br>
the web page, the rendered page is unchanged. I've tried a hard reload,<br>
and clearing<br>
the cache.<br>
<br>
And, in case that wasn't annoying enough, even restarting the server<br>
isn't enough!<br>
Nor is running make again. In fact, the only way I've found of getting<br>
it to update,<br>
is to turn off dev mode, and build the release.<br>
<br>
Am I missing something really obvious? As far as I can tell from<br>
perusing the code,<br>
the cowboy static handler just serves the file directly from the file<br>
system.<br>
<br>
(P.S. I am using vagrant, but I would expect that to cause errors rather<br>
than this, if<br>
the symlink wasn't working.)<br>
<br>
<br>
_______________________________________________<br>
Extend mailing list<br>
<a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a><br>
<a href="https://lists.ninenines.eu/listinfo/extend" rel="noreferrer" target="_blank">https://lists.ninenines.eu/listinfo/extend</a><br>
<br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" rel="noreferrer" target="_blank">http://ninenines.eu</a><br>
Author of The Erlanger Playbook,<br>
A book about software development using Erlang<br>
</div></div></blockquote></div><br></div>