Hosting your app on a VPS instead of a Platform-as-a-Service has you missing out on cool features such as automated deployments.

Wouldn't it be awesome if you had Heroku-like auto-deployments on your server? 💫

In this tutorial, you'll speed up your workflow by setting up automated deployments for your app. 💨

Overview
To accomplish our goal, we need to:

  1. Add a webhook on Github which will call our endpoint each time we push to the repository
  2. Create an endpoint with Webhook that runs the redeploy script when it receives a request from Github
  3. Write a redeploy script that fetches the latest commit from Github and restarts the application

#github 

How to Set up Automated Deployments From Github With Webhook
3.05 GEEK