0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Docker + Django + Uvicorn 環境で、ホットリロードされない問題の解決策

Posted at

Docker + Django + Uvicorn 環境で、ホットリロードされない問題の解決策

表題環境で開発中、Djangoの開発サーバ―ではHTMLの更新もしっかり検知するのだが、

uvicorn call_system.asgi:application --host 0.0.0.0 --port 8000

でサーバーを立ち上げたとき、何をやってもHTMLの変更が検知されなかった。

--reload もダメだったが・・・

uvicorn call_system.asgi:application --host 0.0.0.0 --port 8000 --reload --reload-include *.html

結論、上記でいけた。

--reload-include *.html

が効いた。GPTも頼りにならなかったから解決したときは昇天した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?