# Chapter 6, lesson 11- Publishing changes

**URL:** <https://forum.codewithmosh.com/t/chapter-6-lesson-11-publishing-changes/18078>\
**Category:** Docker\
**Created:** [February 3, 2023, 1:55pm UTC](https://forum.codewithmosh.com/t/chapter-6-lesson-11-publishing-changes/18078 "2023-02-03T13:55:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarant1995](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@amarant1995](https://forum.codewithmosh.com/u/amarant1995)\
**Post date:** [February 3, 2023, 1:55pm UTC](https://forum.codewithmosh.com/t/chapter-6-lesson-11-publishing-changes/18078/1 "2023-02-03T13:55:36Z")

</div>

Hello everyone,

I hope someone knows the answer and will help me.

In lesson “Publishing changes”, I did every step as Mosh did. Have exact files as Mosh does. Yet when I compose the container up again and make changes to the codebase and save them, it doesnt trigger nodemon to rebuild the app.

This is my compose file section for backend 🙂  
backend:  
depends\_on:  
- db  
build: ./backend  
ports:  
- 3001:3001  
environment:  
DB\_URL: mongodb://db/vidly  
command: ./docker-entrypoint.sh  
volumes:  
- ./backend:/app

And this is my Dockerfile:

FROM node:14.16.0-alpine3.13

RUN addgroup app && adduser -S -G app app

USER app

WORKDIR /app

COPY package\*.json ./

RUN npm install

COPY . .

EXPOSE 3001

CMD [“npm”, “start”]

Can anyone help please?

---

<div class="post-metadata">

**Author:** ![taylor.mravic](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@taylor.mravic](https://forum.codewithmosh.com/u/taylor.mravic)\
**Post date:** [March 12, 2023, 1:19pm UTC](https://forum.codewithmosh.com/t/chapter-6-lesson-11-publishing-changes/18078/2 "2023-03-12T13:19:53Z")

</div>

command: [“sh”, “./docker-entrypoint.sh”]

This will run the command `sh` first to start a new shell. Then the script will be executed in that shell.
