Skip to content

Commit

Permalink
Use nodemon for the api server to enable automatic reload on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
espizo committed Oct 10, 2017
1 parent be6b89b commit fb79f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM node:latest
RUN mkdir -p /usr/src/app/react-src
WORKDIR /usr/src/app

RUN npm install -g nodemon

COPY package.json /usr/src/app/
RUN npm install

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
api:
build: .
image: mern-crud
command: node server
command: nodemon server
ports:
- "3000:3000"
environment:
Expand Down

0 comments on commit fb79f56

Please sign in to comment.