Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,207,749 members, 8,000,181 topics. Date: Tuesday, 12 November 2024 at 01:52 AM |
Nairaland Forum / Science/Technology / Programming / Nestjs Microservices Docker Live Reload (339 Views)
Traefik For Docker / Cost Benefits: Monolith Or Microservices? / Has Anyone Here Used Nestjs? What's Your Experience (2) (3) (4)
(1) (Reply)
Nestjs Microservices Docker Live Reload by richebony: 2:14pm On Jun 09, 2023 |
I have been playing around with nestjs microservices and I encountered an issue when using containerized services. Standalone nestjs applications are usually configured with a file watcher on dev mode( i think it uses ts-node under the hood ). The issue I am facing is that, despite my local environment clearly being mounted to the container( i ssh into the containers so i actually see changes being reflected) , the watcher refuses the restart the service on file changes.I tried to update the[b] watch [/b]attribute of ts-config.json in the root application to true, and also passed CHOKIDAR_USEPOLLING=true as a global env variable in my docker-compose file for the service, all to no avail.I think the issue lies with the WSL in Windows OS(i use docker for Windows).If anyone has a workaround on this please kindly direct me. Because I had to improvise by restarting each container anytime I make any file changes ..which is fucking frustrating |
(1) (Reply)
Need Good Book On Design Pattern With C++ / Career Options / Vtu App With Reseller Option ( 2000+ Bill Payments Included) .
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |