<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hot Reloading on queil.net</title>
    <link>https://queil.net/tags/hot-reloading/</link>
    <description>Recent content in Hot Reloading on queil.net</description>
    <generator>Hugo</generator>
    <language>en-uk</language>
    <lastBuildDate>Thu, 19 Jan 2023 14:32:16 +0000</lastBuildDate>
    <atom:link href="https://queil.net/tags/hot-reloading/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hot-reloading with busybox httpd</title>
      <link>https://queil.net/2023/01/hot-reloading-with-busybox-httpd/</link>
      <pubDate>Thu, 19 Jan 2023 14:32:16 +0000</pubDate>
      <guid>https://queil.net/2023/01/hot-reloading-with-busybox-httpd/</guid>
      <description>&lt;h2 id=&#34;intro&#34; class=&#34;anchor-link&#34;&gt;&lt;a href=&#34;#intro&#34;&gt;Intro&lt;span class=&#34;pilcrow&#34;&gt;&amp;nbsp;¶&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been recently working on a simple static website&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;. I quickly noticed previewing it by browsing &lt;code&gt;index.html&lt;/code&gt; is far from perfect.&#xA;I needed a local server to host it. Ubuntu comes with &lt;a href=&#34;https://openwrt.org/docs/guide-user/services/webserver/http.httpd&#34;&gt;busybox httpd&lt;/a&gt; by default so I decided to give it a go.&lt;/p&gt;&#xA;&lt;p&gt;The server can host files form the current dir (&lt;code&gt;-f&lt;/code&gt; makes it run in foreground rather than as a daemon):&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;busybox httpd -f -p &lt;span class=&#34;m&#34;&gt;8090&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It worked great until I got tired with hitting &lt;code&gt;F5&lt;/code&gt; to reload the page. I needed hot-reloading.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
