<div dir="ltr">Done.<div><br></div><div><a href="https://github.com/ninenines/cowboy/issues/897">https://github.com/ninenines/cowboy/issues/897</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 September 2015 at 18:03, 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">It's not the first time I see this bug. Can you open a ticket on the Cowboy project so it gets documented in some kind of "gotchas" section?<span class=""><br>
<br>
On 09/30/2015 06:57 PM, Graham Hay wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<a href="https://www.virtualbox.org/ticket/9069" rel="noreferrer" target="_blank">https://www.virtualbox.org/ticket/9069</a><br>
<br>
Opened 4 years ago :( Maybe I should give VMware some money.<br>
<br>
On 24 September 2015 at 15:57, Graham Hay <<a href="mailto:grahamrhay@gmail.com" target="_blank">grahamrhay@gmail.com</a><br></span><span class="">
<mailto:<a href="mailto:grahamrhay@gmail.com" target="_blank">grahamrhay@gmail.com</a>>> wrote:<br>
<br>
Yeah, that's how I expected it to work. I'll see if I can identify<br>
how vagrant is causing me problems.<br>
<br>
Didn't know about "make run", thanks :)<br>
<br>
On 24 September 2015 at 15:39, Loïc Hoguin <<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a><br></span><div><div class="h5">
<mailto:<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>>> wrote:<br>
<br>
Wait, I'm dumb. These steps also work:<br>
<br>
Running the release, opening the website and seeing ohai,<br>
editing the file with some extra text, reloading, seeing the<br>
extra text.<br>
<br>
<br>
On 09/24/2015 04:35 PM, Loïc Hoguin wrote:<br>
<br>
Running the release, stopping it, editing the file, running<br>
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>
<br>
I was fiddling with some js, and got tired of restarting<br>
the server. I<br>
was under the<br>
impression that using dev_mode with relx was the<br>
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<br>
symlink, as expected.<br>
Yet when I change<br>
the web page, the rendered page is unchanged. I've tried<br>
a hard reload,<br>
and clearing<br>
the cache.<br>
<br>
And, in case that wasn't annoying enough, even<br>
restarting the server<br>
isn't enough!<br>
Nor is running make again. In fact, the only way I've<br>
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<br>
tell from<br>
perusing the code,<br>
the cowboy static handler just serves the file directly<br>
from the file<br>
system.<br>
<br>
(P.S. I am using vagrant, but I would expect that to<br>
cause errors rather<br>
than this, if<br>
the symlink wasn't working.)<br>
<br>
<br>
_______________________________________________<br>
Extend mailing list<br></div></div>
<a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a> <mailto:<a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a>><span class=""><br>
<a href="https://lists.ninenines.eu/listinfo/extend" rel="noreferrer" target="_blank">https://lists.ninenines.eu/listinfo/extend</a><br>
<br>
<br>
<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>
<br>
<br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<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>