summaryrefslogblamecommitdiffstats
path: root/archives/extend/2015-September/000550.html
blob: f379f4ea0e6671f2cb30f5333f01dbdb9ebdc408 (plain) (tree)

























































































                                                                                                                                                                                                                                               
<!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=%3CCAABECY2WtE92TwP0p_9pQFihvfqtf53oARPTxQnbz9Xvw-GjOw%40mail.gmail.com%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="Next"  HREF="000551.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] Cowboy, relx, and dev mode, oh my!</H1>
    <B>Graham Hay</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=%3CCAABECY2WtE92TwP0p_9pQFihvfqtf53oARPTxQnbz9Xvw-GjOw%40mail.gmail.com%3E"
       TITLE="[99s-extend] Cowboy, relx, and dev mode, oh my!">grahamrhay at gmail.com
       </A><BR>
    <I>Wed Sep 23 19:45:01 CEST 2015</I>
    <P><UL>
        
        <LI>Next message: <A HREF="000551.html">[99s-extend] Cowboy, relx, and dev mode, oh my!
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#550">[ date ]</a>
              <a href="thread.html#550">[ thread ]</a>
              <a href="subject.html#550">[ subject ]</a>
              <a href="author.html#550">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>I was fiddling with some js, and got tired of restarting the server. I was
under the
impression that using dev_mode with relx was the solution to this problem,
but
I can't seem to get it to work. I have an example here:

<A HREF="https://github.com/grahamrhay/cowboy_devmode">https://github.com/grahamrhay/cowboy_devmode</A>

If I look in _rel, the lib folder for my app is a symlink, as expected. Yet
when I change
the web page, the rendered page is unchanged. I've tried a hard reload, and
clearing
the cache.

And, in case that wasn't annoying enough, even restarting the server isn't
enough!
Nor is running make again. In fact, the only way I've found of getting it
to update,
is to turn off dev mode, and build the release.

Am I missing something really obvious? As far as I can tell from perusing
the code,
the cowboy static handler just serves the file directly from the file
system.

(P.S. I am using vagrant, but I would expect that to cause errors rather
than this, if
the symlink wasn't working.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20150923/fc8e4ef7/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20150923/fc8e4ef7/attachment.html</A>&gt;
</PRE>


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

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