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

Export _site directory #69

Open
royfrancis opened this issue Sep 11, 2020 · 1 comment
Open

Export _site directory #69

royfrancis opened this issue Sep 11, 2020 · 1 comment

Comments

@royfrancis
Copy link

This works great to run the site in my browser. But, how do I modify it such it exports _site directory from the container into my host working directory?

@bredd
Copy link

bredd commented Feb 25, 2022

I had the same problem and just solved it. You need to add ./_site:/_site to the volumes section of your docker-compose.yml file.

Here's how mine reads:

version: '3'
services:
  jekyll:
    image: starefossen/github-pages
    environment:
      - "JEKYLL_GITHUB_TOKEN:"
    ports:
      - "4000:4000"
    volumes:
      - ./:/usr/src/app:rw
      - ./_site:/_site
    tty: true

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

2 participants