From e3fa5d47b92d0357525dbc952ca1fc8db6f41df6 Mon Sep 17 00:00:00 2001 From: wlinator Date: Mon, 2 Sep 2024 16:32:42 -0400 Subject: [PATCH] refactor: Add --watch flag to docker-compose.dev.yml for hot reloading during development --- CONTRIBUTING.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9126c4e..71ab758 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,9 +14,17 @@ expand the bot's functionality. Please follow these guidelines when contributing * **Docker:** To run the bot, use this command to run your newly edited code: ```bash - docker compose -f docker-compose.dev.yml up --build + docker compose -f docker-compose.dev.yml up --build --watch ``` + * **Docker:** To run the bot, use this command to run your newly edited code: + + ```bash + docker compose -f docker-compose.dev.yml up --build --watch + ``` + + *Note: Adding `--watch` is recommended as it supports hot reloading. You can use the `.dev stop` command to trigger a rebuild with your latest changes.* + * **Poetry:** While developing, it is recommended to install & configure poetry locally: ```bash