Skip to content

Can't reload changed file when run snowpack in docker #1402

Answered by dj-nitehawk
baian1 asked this question in Q&A
Discussion options

You must be logged in to vote

@baian1 thanks for the tip about chokidar.
i added an environment variable to enable chokidar polling in my docker compose and hmr works now. don't know if it's an efficient solution though.

version: "3.8"

services:
  web:
    image: node:15-alpine
    working_dir: /VisitorLog
    ports: 
      - 8080:8080
    restart: always
    volumes: 
      - ${WEB_Source_Location}:/VisitorLog
    environment: 
      - CHOKIDAR_USEPOLLING=true
    command: npm start

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@miyelo
Comment options

@dj-nitehawk
Comment options

@miyelo
Comment options

Answer selected by baian1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants