We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

disqus_P1u8hS5o72 • 4 years ago

From my experience, the `-L` option must be added to the nodemon command in order to trigger a new build in the case where source files are edited from the host.

That is, change ` nodemon --exec babel-node ./src/server.js` to ` nodemon -L --exec babel-node ./src/server.js`

Otherwise, awesome write-up.

Nico • 4 years ago

Interesting. I can't remember having to do this, but I'll check it out next time I run babel-node with nodemon. Thanks for the tip!

5k313t0r • 4 years ago

Thanks for the awesome article! It helped me a bunch! One issue I am having is running the docker-compose run --rm express npm install command. I get checkPermissions Missing write access to /app/node_modules. One thing I found when googling the issue is to use --chown=node:node with the COPY command but for me this doesnt seem to work. Have your run into this? Any suggestions? Thanks!

ohcomeon • 5 years ago

Great article! I'm struggling with installing npm package from private npm repository (github packages). Is there a way to pass an npm auth token as an env variable before npm install command? Eg:
docker-compose run --rm express AUTH_TOKEN=xyz123 npm install

Nico • 5 years ago

Hi! Have you tried the `-e` option? You can use it to set environment variables on one-off containers. See https://docs.docker.com/com...

ohcomeon • 5 years ago

I'll give it a try, thanks!

Sup • 5 years ago

Thanks, awesome article! Could you share an idea how database migrations/seeds should be implemented?