Snippets Collections
FROM node:10.23.0-alpine3.10

RUN apk update && \
mkdir -p /app && chmod 0775 /app && \
rm -rf /var/lib/apt/lists/

#install nodemon 
RUN npm install -g nodemon --unsafe-perm=true --allow-root

#Aggiunta degli applicativi
RUN apk --no-cache add redis dcron procps

COPY entrypoint-dev.sh /entrypoint.sh

CMD ["/entrypoint.sh"]
/* Answer to: "[nodemon] app crashed - waiting for file changes before starting..." */

/*
  This is most likely happening because of all the running server
  process in the background. So just stop them from the terminal.
  
  All you have to do is kill them all by running the command below
  in the terminal then restart nodemon.
*/

  pkill -f node
star

Wed Nov 17 2021 13:19:30 GMT+0000 (Coordinated Universal Time)

#nodejs #redis #nodemon
star

Tue Jun 22 2021 05:51:46 GMT+0000 (Coordinated Universal Time) https://www.google.com/search?q

#javascript #nodemon

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension