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

Reload on additional file changes #269

Closed
Dreamsorcerer opened this issue Jun 21, 2020 · 2 comments
Closed

Reload on additional file changes #269

Dreamsorcerer opened this issue Jun 21, 2020 · 2 comments

Comments

@Dreamsorcerer
Copy link
Member

It would be nice to specify some other files/directories that should be watched for changes and trigger a reload.

In my use-case, the application spawns a separate Python process from some other file, so changes to that file are not recognised as it is not part of the main application.

Folder structure looks like:
root/main_application/
root/extra_application/

I run adev runserver main_application, which itself spawn a process to run extra_application. Changes to extra_application don't cause a reload.

Expected solution, add an option so it is possible to do something like:
adev runserver main_application --watch extra_application/

@diefans
Copy link

diefans commented Jul 22, 2020

I am using https://github.com/eradman/entr for reloading my dev apps and so on....
You pipe all watched files into it and it reloads/executes a command:

# for execution on change
fd . | entr docker-compose exec kong kong reload

# for reload on change
fd . | entr -r bm-ucm serve

@Dreamsorcerer
Copy link
Member Author

This is a duplicate of #209.

Basically, use --root on the parent directory.

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