summaryrefslogtreecommitdiffstats
path: root/archives/extend/2015-September/000555.html
blob: e8108fe5b6c436a427e7ac2a90b9cc81951fe6d2 (plain) (blame)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] Cowboy, relx, and dev mode, oh my!
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Cowboy%2C%20relx%2C%20and%20dev%20mode%2C%20oh%20my%21&In-Reply-To=%3C560C15CF.7000300%40ninenines.eu%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000554.html">
   <LINK REL="Next"  HREF="000556.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] Cowboy, relx, and dev mode, oh my!</H1>
    <B>Lo&#239;c Hoguin</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Cowboy%2C%20relx%2C%20and%20dev%20mode%2C%20oh%20my%21&In-Reply-To=%3C560C15CF.7000300%40ninenines.eu%3E"
       TITLE="[99s-extend] Cowboy, relx, and dev mode, oh my!">essen at ninenines.eu
       </A><BR>
    <I>Wed Sep 30 19:03:11 CEST 2015</I>
    <P><UL>
        <LI>Previous message: <A HREF="000554.html">[99s-extend] Cowboy, relx, and dev mode, oh my!
</A></li>
        <LI>Next message: <A HREF="000556.html">[99s-extend] Cowboy, relx, and dev mode, oh my!
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#555">[ date ]</a>
              <a href="thread.html#555">[ thread ]</a>
              <a href="subject.html#555">[ subject ]</a>
              <a href="author.html#555">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>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 &quot;gotchas&quot; section?

On 09/30/2015 06:57 PM, Graham Hay wrote:
&gt;<i> <A HREF="https://www.virtualbox.org/ticket/9069">https://www.virtualbox.org/ticket/9069</A>
</I>&gt;<i>
</I>&gt;<i> Opened 4 years ago :( Maybe I should give VMware some money.
</I>&gt;<i>
</I>&gt;<i> On 24 September 2015 at 15:57, Graham Hay &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">grahamrhay at gmail.com</A>
</I>&gt;<i> &lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">grahamrhay at gmail.com</A>&gt;&gt; wrote:
</I>&gt;<i>
</I>&gt;<i>     Yeah, that's how I expected it to work. I'll see if I can identify
</I>&gt;<i>     how vagrant is causing me problems.
</I>&gt;<i>
</I>&gt;<i>     Didn't know about &quot;make run&quot;, thanks :)
</I>&gt;<i>
</I>&gt;<i>     On 24 September 2015 at 15:39, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>
</I>&gt;<i>     &lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt;&gt; wrote:
</I>&gt;<i>
</I>&gt;<i>         Wait, I'm dumb. These steps also work:
</I>&gt;<i>
</I>&gt;<i>         Running the release, opening the website and seeing ohai,
</I>&gt;<i>         editing the file with some extra text, reloading, seeing the
</I>&gt;<i>         extra text.
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>         On 09/24/2015 04:35 PM, Lo&#239;c Hoguin wrote:
</I>&gt;<i>
</I>&gt;<i>             Running the release, stopping it, editing the file, running
</I>&gt;<i>             the release
</I>&gt;<i>             again works here. I suspect something related to Vagrant.
</I>&gt;<i>
</I>&gt;<i>             Also I suggest 'make run' rather than your start.sh.
</I>&gt;<i>
</I>&gt;<i>             On 09/23/2015 07:45 PM, Graham Hay wrote:
</I>&gt;<i>
</I>&gt;<i>                 I was fiddling with some js, and got tired of restarting
</I>&gt;<i>                 the server. I
</I>&gt;<i>                 was under the
</I>&gt;<i>                 impression that using dev_mode with relx was the
</I>&gt;<i>                 solution to this
</I>&gt;<i>                 problem, but
</I>&gt;<i>                 I can't seem to get it to work. I have an example here:
</I>&gt;<i>
</I>&gt;<i>                 <A HREF="https://github.com/grahamrhay/cowboy_devmode">https://github.com/grahamrhay/cowboy_devmode</A>
</I>&gt;<i>
</I>&gt;<i>                 If I look in _rel, the lib folder for my app is a
</I>&gt;<i>                 symlink, as expected.
</I>&gt;<i>                 Yet when I change
</I>&gt;<i>                 the web page, the rendered page is unchanged. I've tried
</I>&gt;<i>                 a hard reload,
</I>&gt;<i>                 and clearing
</I>&gt;<i>                 the cache.
</I>&gt;<i>
</I>&gt;<i>                 And, in case that wasn't annoying enough, even
</I>&gt;<i>                 restarting the server
</I>&gt;<i>                 isn't enough!
</I>&gt;<i>                 Nor is running make again. In fact, the only way I've
</I>&gt;<i>                 found of getting
</I>&gt;<i>                 it to update,
</I>&gt;<i>                 is to turn off dev mode, and build the release.
</I>&gt;<i>
</I>&gt;<i>                 Am I missing something really obvious? As far as I can
</I>&gt;<i>                 tell from
</I>&gt;<i>                 perusing the code,
</I>&gt;<i>                 the cowboy static handler just serves the file directly
</I>&gt;<i>                 from the file
</I>&gt;<i>                 system.
</I>&gt;<i>
</I>&gt;<i>                 (P.S. I am using vagrant, but I would expect that to
</I>&gt;<i>                 cause errors rather
</I>&gt;<i>                 than this, if
</I>&gt;<i>                 the symlink wasn't working.)
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>                 _______________________________________________
</I>&gt;<i>                 Extend mailing list
</I>&gt;<i>                 <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A> &lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>&gt;
</I>&gt;<i>                 <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>         --
</I>&gt;<i>         Lo&#239;c Hoguin
</I>&gt;<i>         <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>&gt;<i>         Author of The Erlanger Playbook,
</I>&gt;<i>         A book about software development using Erlang
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>
-- 
Lo&#239;c Hoguin
<A HREF="http://ninenines.eu">http://ninenines.eu</A>
Author of The Erlanger Playbook,
A book about software development using Erlang
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000554.html">[99s-extend] Cowboy, relx, and dev mode, oh my!
</A></li>
	<LI>Next message: <A HREF="000556.html">[99s-extend] Cowboy, relx, and dev mode, oh my!
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#555">[ date ]</a>
              <a href="thread.html#555">[ thread ]</a>
              <a href="subject.html#555">[ subject ]</a>
              <a href="author.html#555">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>