<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>開発環境 on Eating Your Own Cat Food</title><link>https://blog.miti-7.com/categories/%E9%96%8B%E7%99%BA%E7%92%B0%E5%A2%83/</link><description>Recent content in 開発環境 on Eating Your Own Cat Food</description><generator>Hugo -- gohugo.io</generator><language>ja-JP</language><lastBuildDate>Sun, 15 Sep 2024 00:00:00 +0900</lastBuildDate><atom:link href="https://blog.miti-7.com/categories/%E9%96%8B%E7%99%BA%E7%92%B0%E5%A2%83/index.xml" rel="self" type="application/rss+xml"/><item><title>Hugo でファイル変更が検出されないときの対処</title><link>https://blog.miti-7.com/post/hugo-file-change-detection/</link><pubDate>Sun, 15 Sep 2024 00:00:00 +0900</pubDate><guid>https://blog.miti-7.com/post/hugo-file-change-detection/</guid><description>&lt;p&gt;Hugo ではサーバーの実行中にファイルが変更されるとサイトを再構築し自動的にブラウザを更新してくれる機能があるのですが&#10;，&lt;a class="link" href="https://gohugo.io/troubleshooting/faq/#why-isnt-hugos-development-server-detecting-file-changes" target="_blank" rel="noopener"&#10; &gt;Frequently asked questions&lt;/a&gt; によると WSL で実行しているときはうまく動作しないことがあるらしいです．&lt;br&gt;&#10;このようなときは server を起動するときに，&lt;a class="link" href="https://gohugo.io/commands/hugo_server/" target="_blank" rel="noopener"&#10; &gt;poll オプション&lt;/a&gt;を指定すると定期的にポーリングしてくれます．&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;&#10;&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;hugo server --poll &amp;#34;700ms&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item></channel></rss>