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

Local development: use nodemon to watch files instead of watchmedo #9338

Merged
merged 2 commits into from Jun 16, 2022

Conversation

humitos
Copy link
Member

@humitos humitos commented Jun 15, 2022

We have been dealing with a problem with watchmedo that restart the process
when it shouldn't be restarted and it doesn't restart it when it should.

I got tired debugging watchmedo and I was suggested to give it a try to
nodemon because we are already using it in other projects. I'm not super happy
adding a node dependency to the Dockerfile, but I didn't find a better way to do it.

I did some tests with the configuration proposed and it seemed to work pretty
well. I'm sure we will find some edge cases, but we always can tune it a little
more later.

Requires: readthedocs/common#150
Closes #8802

We have been dealing with a problem with `watchmedo` that restart the process
when it shouldn't be restarted and it doesn't restart it when it should.

I got tired debugging `watchmedo` and I was suggested to give it a try to
`nodemon` because we are already using it in other projects. I'm not super happy
adding a node dependency to the Dockerfile, but I didn't find a better way to do it.

I did some tests with the configuration proposed and it seemed to work pretty
well. I'm sure we will find some edge cases, but we always can tune it a little
more later.

Closes #8802
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks easy enough, it's what I would have added 👍

It's not required anymore since we are using `nodemon` now.
@humitos humitos merged commit 97ee9ba into main Jun 16, 2022
@humitos humitos deleted the humitos/watch-files-nodemon branch June 16, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Local development: celery/build container don't restart on files changes
2 participants