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.
This commit is contained in:
Paul Gauthier 2024-05-15 09:39:57 -07:00
parent e41af1c28e
commit a76bf0c9fa

View file

@ -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