Paste (Python) Web Server - Autoreload Problem

前端 未结 2 1190
礼貌的吻别
礼貌的吻别 2021-01-14 05:20

When I start the `Paste\' web server in daemon mode, it seems to kill off it\'s ability to reload when the timestamp of a source file is updated.

Here is how I start

2条回答
  •  误落风尘
    2021-01-14 06:06

    I believe that the two options are essentially incompatible, since the reloader stops the server with a SIGTERM and the daemon-ized server is impervious to that -- and since daemon is intended for running in a production environment, and reload for a development/debugging environment, I guess that their incompatibility is not seen as a big loss. I imagine a customized reloader, tailored to properly stop and restart the daemonized server, could certainly be developed, but I don't know of any existing one.

提交回复
热议问题