Skip to content
Discussion options

You must be logged in to vote

Hey thanks for the answer. The approach I ended up going with, was via docker-compose, volume mounts.

version: "3"
services:
  eleventy:
    image: node:16-slim
    volumes:
      - ${PWD}:/app
      - ${PWD}/../common:/app/common
      - ${PWD}/../../specific.md:/app/text/specific.md
    working_dir: /app
    environment:
      - DEBUG=Eleventy*
    command:
      - /bin/sh
      - -c
      - |
        npm install
        npx eleventy --watch --serve
    ports:
      - 8080:8080

It does work, the --watch and --serve is doing fine, but does have some minor quirks I can live with. Namely - Ctrl + C takes a while to 'kill' the application, it's fine.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mendhak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants