Answer the question
In order to leave comments, you need to log in
How to automatically deploy an application from a git to a VPS after making changes?
Please, tell me a step-by-step instruction on how to implement the following scenario.
Node application is up and running on VPS. I make changes locally, I commit them, I push them.
How can I avoid the stage where I have to log into the server myself, shut down the running application, update the repository on the server and restart it?
I suspect there is a way to automatically "see" the changes pushed to the master on the server and restart everything? And do I need a separate branch for "production"?
And yet, where do you read about it, kindly poke your nose?
Answer the question
In order to leave comments, you need to log in
There are web hooks in github and bitbucket. you set up the URL to ping, and on this url you already make a deployment script on the server. Thus, after each push, or other action that can also be configured, the code will be deployed to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question