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

Code reloading #13

Open
alanpoulain opened this issue May 7, 2024 · 3 comments
Open

Code reloading #13

alanpoulain opened this issue May 7, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@alanpoulain
Copy link

alanpoulain commented May 7, 2024

Thank you for this project, it works great!
I'm having a little issue though, the Python code seems to be not reloaded by the plugin, is it normal?
For information, I'm using module_asgi with a FastAPI application (that's probably why).

@mliezun mliezun self-assigned this May 8, 2024
@mliezun mliezun added the enhancement New feature or request label May 8, 2024
@mliezun
Copy link
Owner

mliezun commented May 8, 2024

Hi @alanpoulain, sorry for the delay and thanks for using the plugin and filing an issue!

Code reloading is not built into the plugin yet. I can work on it and support it on a future release.

In the meantime, as a quick and dirty solution, you can use watchmedo to restart the caddy process each time you change a file.

@alanpoulain
Copy link
Author

Thank you for your answer!
No pressure, I can work on my project without relying on it, I just need to not forget to reload caddy 😅
I will try to use watchmedo if it's too cumbersome, thanks.
Maybe you could add a line in the README to explain the issue?

@mliezun
Copy link
Owner

mliezun commented May 8, 2024

Good idea!

Done here 8725bc7

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

No branches or pull requests

2 participants