aider/scripts/run.sh
Paul Gauthier a76bf0c9fa 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.
2024-05-15 09:39:57 -07:00

4 lines
110 B
Bash

#!/bin/bash
# Run the Docker container
docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 -it my-jekyll-site