![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Git service deploy hooks
Is anyone using git on a local machine to manage code on your remote servers? Currently doing some research on using hooks to pull changes after a commit to my remote repo.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
Confirmed User
Industry Role:
Join Date: Jul 2005
Location: icq#: 639544261
Posts: 1,965
|
Quote:
Usually I have a local git repo, push to remote and then pull that remote on my deploy server. This is quite common I believe. If you are using Ruby then use Cappuccino and if you are using Python then use Fabric. You can use either for any language and then integrate well with git. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Quote:
http://toroid.org/ams/git-website-howto
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
i use git on my server to push changes to github, i also have a local git server, which i push to my dedicated (you can do this without running the actual git daemon)
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
|
Yes, have been doing so for a while.
I use a repo like Bitbucket.org that have post commit triggers. This fires a script on a box that deploys to remote machines. Conditional options based on the branch means I can fire to master or branches/staging at will. Their triggers are nice Json so has everything you need in it, they also have hooks for a few others as well. Presumably you are aiming for continuous integration, I'm looking to expand the deployments to include phplint, linkchecker and drive some phpUnit tests as well. |
![]() |
![]() ![]() ![]() ![]() ![]() |