简体   繁体   中英

How to push to github for github to update my server

Help will greatly be appreciated, im unsure of what this would be caled so my google searching has been difficult. I have root access on my apache server.

Thanks in advance :)

What you are likely looking for are GitHub hooks: http://developer.github.com/v3/repos/hooks/

Basically with a GitHub hook you can have GitHub post a notification to any URL when something changes in your GitHub repo. Then you can write a bit of code that listens for these notifications and reacts accordingly.

In your case it sounds like "reacting accordingly" would be git pull-ing the latest code, maybe running some deployment scripts, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM