moo

How can I update the git repo running on my server without interrupting service?

Hello. Everytime I make a change to my site or backend, I have to commit and push my changes, then login to my server via ssh, stop the Node process (running on PM2), then pull the new commit, and then rebuild and restart. This usually leaves my site unavailable for 2-3 minutes while I rebuild the code and reenable the Node process.Is there any way of preventing downtime during this process? via /r/webdev https://ift.tt/M8c9kLJ

Categories: funny, photos