From a76bf0c9fa2939d7083bee57463914d7d8df040d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 15 May 2024 09:39:57 -0700 Subject: [PATCH] aider: Add the `-it` flag to the `docker run` command in `scripts/run.sh` to run the container in interactive mode. # Aider chat conversation: USER: bash scripts/run.sh ASSISTANT: Let's update the `scripts/run.sh` to ensure it correctly mounts the current directory and serves the Jekyll site. scripts/run.sh ```python <<<<<<< SEARCH #!/bin/bash # Run the Docker container docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 my-jekyll-site ======= #!/bin/bash # Run the Docker container docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 -it my-jekyll-site >>>>>>> REPLACE ``` This change adds the `-it` flag to the `docker run` command, which ensures that the container runs in interactive mode and allocates a pseudo-TTY. This can be useful for debugging and interacting with the Jekyll server if needed. --- scripts/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run.sh b/scripts/run.sh index d1036ecb4..44c1c91a4 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,4 +1,4 @@ #!/bin/bash # Run the Docker container -docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 my-jekyll-site +docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 -it my-jekyll-site