Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind mountings not working as expected #66

Closed
andreafspeziale opened this issue Feb 10, 2020 · 2 comments
Closed

Bind mountings not working as expected #66

andreafspeziale opened this issue Feb 10, 2020 · 2 comments

Comments

@andreafspeziale
Copy link

I created the following example to highlight what I can't make it work:

I don't have any local node_modules. I'm running everything through Docker.

As soon as I bootstrap the project with $ docker-compose up everything looks great.
If I try to change the Hello World! sentence in index.js nodemon reloads the server as expected.

But as soon as I want to add a dependency like lodash while developing and while my container is up and running the package.json is not updated.

As explained in this repo (node-docker-good-defaults) I'm using $ docker-compose exec -w /opt/node_app node npm install --save lodash to install the new dependency and reflect the changes on my host project. Unfortunately it isn't working.

Any hints?

@BretFisher
Copy link
Owner

related to other's issues with writing to package.json in #28 maybe?

@andreafspeziale
Copy link
Author

@BretFisher Indeed. I will delete this issue and copy my message over there. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants