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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
<tt>
<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:[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">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>
<br><br>
On 09/30/2015 06:57 PM, Graham Hay wrote:<br><br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<a href="https://www.virtualbox.org/ticket/9069" rel="noreferrer" target="_blank">https://www.virtualbox.org/ticket/9069</a><br><br>
<br><br>
Opened 4 years ago :( Maybe I should give VMware some money.<br><br>
<br><br>
On 24 September 2015 at 15:57, Graham Hay <<a href="mailto:[email protected]" target="_blank">[email protected]</a><br></span><span class=""><br>
<mailto:<a href="mailto:[email protected]" target="_blank">[email protected]</a>>> wrote:<br><br>
<br><br>
Yeah, that's how I expected it to work. I'll see if I can identify<br><br>
how vagrant is causing me problems.<br><br>
<br><br>
Didn't know about "make run", thanks :)<br><br>
<br><br>
On 24 September 2015 at 15:39, Loïc Hoguin <<a href="mailto:[email protected]" target="_blank">[email protected]</a><br></span><div><div class="h5"><br>
<mailto:<a href="mailto:[email protected]" target="_blank">[email protected]</a>>> wrote:<br><br>
<br><br>
Wait, I'm dumb. These steps also work:<br><br>
<br><br>
Running the release, opening the website and seeing ohai,<br><br>
editing the file with some extra text, reloading, seeing the<br><br>
extra text.<br><br>
<br><br>
<br><br>
On 09/24/2015 04:35 PM, Loïc Hoguin wrote:<br><br>
<br><br>
Running the release, stopping it, editing the file, running<br><br>
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>
<br><br>
I was fiddling with some js, and got tired of restarting<br><br>
the server. I<br><br>
was under the<br><br>
impression that using dev_mode with relx was the<br><br>
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<br><br>
symlink, as expected.<br><br>
Yet when I change<br><br>
the web page, the rendered page is unchanged. I've tried<br><br>
a hard reload,<br><br>
and clearing<br><br>
the cache.<br><br>
<br><br>
And, in case that wasn't annoying enough, even<br><br>
restarting the server<br><br>
isn't enough!<br><br>
Nor is running make again. In fact, the only way I've<br><br>
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<br><br>
tell from<br><br>
perusing the code,<br><br>
the cowboy static handler just serves the file directly<br><br>
from the file<br><br>
system.<br><br>
<br><br>
(P.S. I am using vagrant, but I would expect that to<br><br>
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></div></div><br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a> <mailto:<a href="mailto:[email protected]" target="_blank">[email protected]</a>><span class=""><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>
<br><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>
<br><br>
<br><br>
<br><br>
</span></blockquote><div class="HOEnZb"><div class="h5"><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>
|