# Deploy code từ git vào VPS

**URL:** https://daynhauhoc.com/t/deploy-code-tu-git-vao-vps/82889
**Category:** programming
**Tags:** dotnet
**Created:** [February 21, 2019, 11:34am UTC](https://daynhauhoc.com/t/deploy-code-tu-git-vao-vps/82889 "2019-02-21T11:34:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![So\_Sho](https://daynhauhoc.com/letter_avatar_proxy/v4/letter/s/a88e57/32.png) [@So\_Sho](https://daynhauhoc.com/u/So_Sho)
#### Post date: [February 21, 2019, 11:34am UTC](https://daynhauhoc.com/t/deploy-code-tu-git-vao-vps/82889/1 "2019-02-21T11:34:03Z")

</div>

Xin chào các anh chị em 😃  
Tình hình là em vừa setup 1 Virtual Machine trên Azure để deploy code .Net, nhưng em lại làm cùng nhóm nên em muốn mỗi khi 1 thành viên commit lên git thì sẽ tự build và deploy lên máy vps luôn. Trên Azure em thấy có mỗi dịch vụ App Services là có chức năng tương tự này. Em đã google nhưng thực sự rối rắm, nên mạo muội lên đây tìm cao nhân để xin chút gợi ý về việc này, làm phát ăn ngay khỏi thử nhiều cái.  
Xin cảm ơn 😃

---

<div class="post-metadata">

### Author: ![Dao\_An](https://daynhauhoc.com/user_avatar/daynhauhoc.com/dao_an/32/17646_2.png) [@Dao\_An](https://daynhauhoc.com/u/Dao_An)
#### Post date: [February 21, 2019, 11:49am UTC](https://daynhauhoc.com/t/deploy-code-tu-git-vao-vps/82889/2 "2019-02-21T11:49:06Z")

</div>

Bạn tìm hiểu Git Hooks xem sao.

> **[Deploy a website to a remote server with Git push – François Romain – Medium](https://medium.com/@francoisromain/vps-deploy-with-git-fea605f1303b)**
>
> Three steps to configure the deployment process with a Git Hook

  

> **[How To Set Up Automatic Deployment with Git with a VPS | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps)**
>
> This article will teach you how to use Git when you want to deploy your application. While there are many ways to use Git to deploy our application, we'll focus on the one that is most straightforward.

---

<div class="post-metadata">

### Author: ![Hoang\_Thanh\_Phuc](https://daynhauhoc.com/user_avatar/daynhauhoc.com/hoang_thanh_phuc/32/38959_2.png) [@Hoang\_Thanh\_Phuc](https://daynhauhoc.com/u/Hoang_Thanh_Phuc)
#### Post date: [February 22, 2019, 9:03am UTC](https://daynhauhoc.com/t/deploy-code-tu-git-vao-vps/82889/3 "2019-02-22T09:03:39Z")

</div>

Dùng App service cũng được mà, bạn ngại gì à.
