You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing with docker-compose for dev a few months back, but still wasn't satisfied as far as debugging and autocompletion.
Since you run everything in docker, you inject your source code into container, but node_modules are not available in IDE for autocompletion.
Another problem is debugging.
Do you handle it somehow?
--
Thanks,
Alex
The text was updated successfully, but these errors were encountered:
@okhomenko This is a very good question! I had exactly same problems and somehow forget to answer them in the blog post.
I don't use much of IDE autocompletion or debug for Javascript applications. Most of the team members use Atom and some code style plugins such as linter and eslint-linter. To make them actually work we had to install eslint and other plugins on a host machine manually.
I can imagine few ways to solve the problem:
Hack the ./bin/start.sh script and copy node_modules from running containers to the host machine using docker cp
Just install this packages manually from time to time.
As for debugging, I never really used it, but some our team members use node-inspector and just start along with the service like this:
This is part of our package.json for some of the services. In Dockerfile.dev we start an application using npm run development, which starts both application and node-inspector.
Let's see if some of our readers know a better way to overcome these issues.
Great article, thanks.
I've been playing with docker-compose for dev a few months back, but still wasn't satisfied as far as debugging and autocompletion.
Since you run everything in docker, you inject your source code into container, but node_modules are not available in IDE for autocompletion.
Another problem is debugging.
Do you handle it somehow?
--
Thanks,
Alex
The text was updated successfully, but these errors were encountered: