DEV Community

Discussion on: How to run multiple Node and Angular versions simultaneously

Collapse
 
patryktech profile image
Patryk

I just use docker. Define an image version as a variable, and you can easily manage all your infrastructure as code.

Collapse
 
patricepeartree profile image
Patrícia Pereira

Hi Patryk! Yeah, that was also my original approach (and the one I actually keep using the most). Do you use mounted volumes in your containers? I do, and sometimes the file system access to the host makes read/write operations slow, and that was what made me look for a different approach.

Collapse
 
patryktech profile image
Patryk

I use both bind mounts for development (in my Python and node containers), and named volumes in dev and production, e.g. for my databases.

I use Linux for development and production, and I've never noticed any performance issues.

Thread Thread
 
patricepeartree profile image
Patrícia Pereira

Same here, regarding the volumes. But when in Windows with a bind mount for development, a simple npm install would take a lot longer than when run in the host. Probably Windows related...