Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignores implicitly for no good reason. #264

Open
Zenahr opened this issue Nov 21, 2022 · 1 comment
Open

ignores implicitly for no good reason. #264

Zenahr opened this issue Nov 21, 2022 · 1 comment

Comments

@Zenahr
Copy link

Zenahr commented Nov 21, 2022

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/
@callamd
Copy link

callamd commented Jan 23, 2024

Seems to be linked to css-rebuilding on change. For example it often happens if I'm also running:

npx tailwindcss -i app/static/css/base.css -o app/static/dist/css/output.css --watch

Which is quite tedious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants