Skip to content

ignores implicitly for no good reason. #264

@ZenaMel

Description

@ZenaMel

I've tried to set it up with Flask and get it going for a really basic scenario. Apart from crashing anytime I edit any of the .py files, it ignores the html file I'm interested in, disregarding what I add to server.watch().

Here's the minimal setup:

from flask import Flask, render_template
app = Flask(__name__)

@app.route('/')
def hello():
    return render_template('index.html')

if __name__ == '__main__':
    from livereload import Server
    server = Server(app.wsgi_app)
    server.watch('./templates/*.html')
    server.serve(debug=True)

folder structure:

app.py
templates/index.html

Example stacktrace:

[I 221121 18:13:30 server:335] Serving on http://127.0.0.1:5500
[I 221121 18:13:30 handlers:62] Start watching changes
[I 221121 18:13:30 handlers:64] Start detecting changes
[I 221121 18:13:31 handlers:135] Browser Connected: http://127.0.0.1:5500/
[I 221121 18:13:31 handlers:135] Browser Connected: http://127.0.0.1:5500/
[I 221121 18:13:32 handlers:82] Ignore: ./templates\index.html
[I 221121 18:13:33 handlers:92] Reload 2 waiters: None
[I 221121 18:13:34 handlers:135] Browser Connected: http://127.0.0.1:5500/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions