Why is index.html ignored when I do not issue any ignore pattern and how to fix this?
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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).
- Langage dominant
- Python
- Étoiles
- 1.1k
- Forks
- 148
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de lepture/python-livereload
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
lepture/python-livereload#159 · 3 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
lepture/python-livereload#288 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
lepture/python-livereload#283 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
lepture/python-livereload#282 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
lepture/python-livereload#279 ·
Toutes les issues de lepture/python-livereload
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
pytest-dev/pyfakefs#1367 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
IFEvalG exclude_word_harder misses the keyword next to punctuation, at the start or end of the text, and in other letter casePeut-être pris @damienen l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
allenai/open-instruct#2151 ·
Les mainteneurs répondent en général sous 1 jour
-
feat(plan): support convertorLabels and convertorAffinity in Plan resourcePeut-être pris @AmenB l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
RedHatQE/openshift-python-wrapper#2849 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 25 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
libnativeapi/nativeapi#21 ·