You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using AdonisJS in a Docker-based development environment. To detect file changes and enable a fast feedback loop during development, I started using the --poll flag (node ace serve --poll). I’ve noticed that changes do not reflect in the application without manually restarting the server.
Dockerfile
FROM node:20.12.2-alpine3.18
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /app
COPY package*.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I’m using AdonisJS in a Docker-based development environment. To detect file changes and enable a fast feedback loop during development, I started using the --poll flag (node ace serve --poll). I’ve noticed that changes do not reflect in the application without manually restarting the server.
Dockerfile
docker-compose.yml
Scripts in package.json
Is --poll sufficient to enable hot reloading for all files or are additional configurations required?
Beta Was this translation helpful? Give feedback.
All reactions