Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make docker command does not track _sass or html files in the project root #415

Open
ckingbailey opened this issue Sep 12, 2020 · 0 comments

Comments

@ckingbailey
Copy link
Contributor

The Jekyll development server will rebuild on changes to files, but the docker run command in the Makefile does not bind-mount the _sass folder or any html files that are in the project root (such as index.html).

I tried mounting the _sass folder (-v "$(PWD)/_sass:/app/_sass") and it works as expected. However, I have been unsuccessful in getting the Jekyll server running in the Docker container to rebuild on changes when index.html is mounted (-v "$(PWD)/index.html:/app/index.html"). I found this SO thread that says you have to touch any individual files you want to mount in the Docker container before mounting them. I tried that, adding RUN touch index.html in the Dockerfile. It didn't work for me.

Others have tried the above and it works for them. Here's a Gist that includes a line to mount index.html. This code does not work on my system. Note that the additions in the Gist did not require adding touch index.html to the Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant