piyushgarg-dev / vercel-clone

Vercel Clone From Scratch 🚀
https://youtu.be/0A_JpLYG7hM
172 stars 71 forks source link

Containers are still running #7

Open vaibhavyadav-dev opened 9 months ago

vaibhavyadav-dev commented 9 months ago

Problem : Containers are still running even after the build process completed Solution : Need to add publisher.disconnect(); on line 70 in /build-server/script.js This will ensure the docker shutdown after the upload process is completed. 💯

piyushgarg-dev commented 9 months ago

Great @CaptainTron.

Alternatively, you can also add process.exit(0) after you have done uploading files to S3 in the container.

Thanks for pointing out.