https://github.com/jesusenlanet/django-watchman-example
Example project using the watchman reloader into a dockerized django app.
https://github.com/jesusenlanet/django-watchman-example
django-watchman watchman watchman-reloader
Last synced: about 1 month ago
JSON representation
Example project using the watchman reloader into a dockerized django app.
- Host: GitHub
- URL: https://github.com/jesusenlanet/django-watchman-example
- Owner: jesusenlanet
- Created: 2020-05-31T14:28:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T14:52:31.000Z (almost 5 years ago)
- Last Synced: 2025-02-14T11:53:24.276Z (3 months ago)
- Topics: django-watchman, watchman, watchman-reloader
- Language: Python
- Homepage: https://www.pylancer.com/blog/post/configure-watchman-into-a-docker-container-to-reload-the-django-development-server-faster/
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Watchman Example
That example project shows how to use the watchman reloader into a dockerized django app.To start the server and follow the container logs, run:
```bash
docker-compose build
docker-compose up -d
docker-compose logs -f
```If you read something like:
`Watching for file changes with StatReloader`
Try with a higher value for the `DJANGO_WATCHMAN_TIMEOUT` variable in the `docker-compose.yml` file.
There's also a `.watchmanconfig` file like that:
```json
{
"ignore_dirs": [".git", ".idea", "venv"]
}
```If you want configure watchman to ignore some folder, just add that folder to the `ignore_dirs` list.