GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Git service deploy hooks (https://gfy.com/showthread.php?t=1086018)

Brujah 10-19-2012 02:44 PM

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.

mafia_man 10-19-2012 03:15 PM

Quote:

Originally Posted by Brujah (Post 19262451)
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.

What language are you using? I'm not quite sure what you are trying to do.

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.

Brujah 10-19-2012 03:17 PM

Quote:

Originally Posted by mafia_man (Post 19262479)
What language are you using? I'm not quite sure what you are trying to do.

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.

Currently, I manually pull on the production server after a local push to remote. I was looking at the hooks. I found this info that would work well if you have a repo on the same production server.
http://toroid.org/ams/git-website-howto

fris 10-19-2012 09:06 PM

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)

livexxx 10-20-2012 07:51 AM

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.


All times are GMT -7. The time now is 06:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123