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

hot reload runner #4

Closed
gedw99 opened this issue May 14, 2024 · 2 comments
Closed

hot reload runner #4

gedw99 opened this issue May 14, 2024 · 2 comments

Comments

@gedw99
Copy link
Contributor

gedw99 commented May 14, 2024

I was trying this out and saw that you were trying to optimise hit reload

https://github.com/cirello-io/runner might be better for controlling the processes. It's pretty amazing what it can do with running many processes and watching for file changes.

works on windows, Mac and linux too.

@gedw99 gedw99 changed the title hot reload hot reload runner May 14, 2024
@depado
Copy link
Owner

depado commented May 14, 2024

Hi!
Just a warning, this is a work in progress and I'm committing daily to it lately so expect things to break every once in a while!

Thanks for the suggestion! But it seems that wouldn't fit the use case I'm facing here because I need to react differently if different files are changed (recompile when go files change, re-run templ generate when templ file change).
The current implementation "works" but doesn't benefit from hot reloading from templ.
I'll wait for bokwoon95/wgo#8 to be resolved once (if) a-h/templ#687 is merged 😄 and then use

templ generate --watch --cmd "wgo ..." 

So it can benefit from both wgo's live reload capabilities and templ's proxy.

I appreciate the suggestion though!

@depado depado closed this as completed May 14, 2024
@gedw99
Copy link
Contributor Author

gedw99 commented May 15, 2024

Yes I know its all alpha and chasing fast but I think its a really good base, and wanted to help out.

no worries - I figured Runner might be useful but guess not.

I use it to run many processes. It has supervisions trees, so pretty slick.

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