1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<tt>
<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:[email protected]" target="_blank">[email protected]</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>
<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>
<br><br>
On 09/24/2015 04:35 PM, Loïc Hoguin wrote:<br><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Running the release, stopping it, editing the file, running the release<br><br>
again works here. I suspect something related to Vagrant.<br><br>
<br><br>
Also I suggest 'make run' rather than your start.sh.<br><br>
<br><br>
On 09/23/2015 07:45 PM, Graham Hay wrote:<br><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I was fiddling with some js, and got tired of restarting the server. I<br><br>
was under the<br><br>
impression that using dev_mode with relx was the solution to this<br><br>
problem, but<br><br>
I can't seem to get it to work. I have an example here:<br><br>
<br><br>
<a href="https://github.com/grahamrhay/cowboy_devmode" rel="noreferrer" target="_blank">https://github.com/grahamrhay/cowboy_devmode</a><br><br>
<br><br>
If I look in _rel, the lib folder for my app is a symlink, as expected.<br><br>
Yet when I change<br><br>
the web page, the rendered page is unchanged. I've tried a hard reload,<br><br>
and clearing<br><br>
the cache.<br><br>
<br><br>
And, in case that wasn't annoying enough, even restarting the server<br><br>
isn't enough!<br><br>
Nor is running make again. In fact, the only way I've found of getting<br><br>
it to update,<br><br>
is to turn off dev mode, and build the release.<br><br>
<br><br>
Am I missing something really obvious? As far as I can tell from<br><br>
perusing the code,<br><br>
the cowboy static handler just serves the file directly from the file<br><br>
system.<br><br>
<br><br>
(P.S. I am using vagrant, but I would expect that to cause errors rather<br><br>
than this, if<br><br>
the symlink wasn't working.)<br><br>
<br><br>
<br><br>
_______________________________________________<br><br>
Extend mailing list<br><br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br><br>
<a href="https://lists.ninenines.eu/listinfo/extend" rel="noreferrer" target="_blank">https://lists.ninenines.eu/listinfo/extend</a><br><br>
<br><br>
</blockquote><br>
<br><br>
</blockquote><br>
<br><br>
-- <br><br>
Loïc Hoguin<br><br>
<a href="http://ninenines.eu" rel="noreferrer" target="_blank">http://ninenines.eu</a><br><br>
Author of The Erlanger Playbook,<br><br>
A book about software development using Erlang<br><br>
</div></div></blockquote></div><br></div><br>
</tt>
|