Auto reloading Sanic app

  • このエントリーをはてなブックマークに追加

Hey there i was looking for auto reload for sanic and finally found it!

almost implemented by my self. lol.

there’s 2 way you can auto reload you app.

Method 1.

use entr

http://entrproject.org/

Run arbitrary commands when files change.

this is the perfect solution!

Lets try it!

Simple. not even gonna talk about it. lol.

Method 2.

Use the gunicorn worker for sanic.

https://github.com/messense/sanic-gunicorn

Run the server with Gunicorn worker.

Those 2 methods was not by me!

source:

https://gitter.im/sanic-python/Lobby?at=58d03fca5917e26076b6fe0b

https://gitter.im/sanic-python/Lobby?at=58cfcd506d7eb18404e854fd

  • このエントリーをはてなブックマークに追加

SNSでもご購読できます。

Leave a Reply

*