Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,216 members, 7,818,730 topics. Date: Sunday, 05 May 2024 at 11:17 PM

Nestjs Microservices Docker Live Reload - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Nestjs Microservices Docker Live Reload (254 Views)

Nestjs Framework Backend Developer Needed For An App / Traefik For Docker / 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)

I Need A Nodejs Or Fullstack Mentor / If You Say This During Your Job Interview, You're Will Get Hired! / Apply For Tuition Free Software Engineer Degree In This New USA University

(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. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.