Why is index.html ignored when I do not issue any ignore pattern and how to fix this?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by tracing Server.watch and server.serve through the watcher handling shown in the issue, using the printed _tasks entries for build/**/* and build/*. Determine why build/index.html is logged as ignored despite ignore being None. Done means identifying the cause and documenting or verifying a configuration that watches all files under build.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I run a livereload server from this code:
from livereload import Server, shell
server = Server()
server.watch('build/**/*')
server.watch('build/*')
print(server.watcher._tasks)
server.serve(host='0.0.0.0', root='build', port=9000)
When I run this server and then change the stuff in my site directory build I get logging output like this:
$$$ python server.py
{'build/**/*': {'func': None, 'delay': None, 'ignore': None, 'mtimes': {}},
'build/*': {'func': None, 'delay': None, 'ignore': None, 'mtimes': {}}}
[I 201025 13:23:17 server:335] Serving on http://0.0.0.0:9000
[I 201025 13:23:17 handlers:62] Start watching changes
[I 201025 13:23:17 handlers:64] Start detecting changes
[I 201025 13:23:38 handlers:135] Browser Connected: http://localhost:9000/gallery/
[I 201025 13:24:36 handlers:95] Reload 1 waiters: build/static/css/custom.css
[I 201025 13:24:37 handlers:82] Ignore: build/index.html
The output shows in the last line that build/index.html is ignored hwich totally defets the propsuse - beacsue build/index.html was chanegd. And my debug print line at the top show clearly that in _tasks is no ignore attrivute set.
So why is build/index.html ignored and how can I tell livereload to watch all files in the directory build for changes. (The site is not very big; it contains only 114 files).
- Lingua principale
- Python
- Stelle
- 1.1k
- Fork
- 148
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lepture/python-livereload
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
lepture/python-livereload#159 · 3 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
lepture/python-livereload#288 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
lepture/python-livereload#283 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
lepture/python-livereload#282 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
lepture/python-livereload#279 ·
Tutte le issue di lepture/python-livereload
Issue simili
-
changelog investigate
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ramnes/notion-sdk-py#409 ·
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
lindicaphxag-tech/kaggle#28 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
BSData/horus-heresy-3rd-edition#3211 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
bug tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno