mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Only --reload on changes to immutable databases, closes #494
This commit is contained in:
parent
b031fe9763
commit
411056c4c4
1 changed files with 2 additions and 1 deletions
|
|
@ -341,7 +341,8 @@ def serve(
|
|||
import hupper
|
||||
|
||||
reloader = hupper.start_reloader("datasette.cli.serve")
|
||||
reloader.watch_files(files)
|
||||
if immutable:
|
||||
reloader.watch_files(immutable)
|
||||
if metadata:
|
||||
reloader.watch_files([metadata.name])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue