Question

digital ocean doesn't update the github repository when i type git pull

Posted March 10, 2019 1.2k views
Node.js

i have an web app deployed on digital ocean and when i type git pull to update the app it doesn’t update. I have an api on node js and client app on angular 6, i have nodejs installed on digital ocean server and also git.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Greetings!

If you are running a nodejs app you may need to restart the application after pulling the latest code. The steps for this are relative to how you have it set up, so I’m unable to provide those. It may also be possible to have your application check for new code on a regular interval, which then reloads portions of the application without requiring a full restart. This article seems to outline a method for doing that:

https://codeforgeek.com/2014/09/update-code-without-restarting-node-server/

Jarland

Submit an Answer