Automatically Deploy From GitHub To Server On Push

后端 未结 6 1655
陌清茗
陌清茗 2020-12-02 11:23

We have a VPS on linode, and code hosted on gitHub. How do we setup so when we push to gitHub, it also pushes automatically to our linode server. We are using PHP on the lin

6条回答
  •  渐次进展
    2020-12-02 12:04

    You probably want to use GitHub's post-receive hooks.

    In summary, GitHub will POST to a supplied URL when someone pushes to the repo. Just write a short PHP script to run on your linode VPS and pull from GitHub when it receives said POST.

提交回复
热议问题