News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sean Coates' Blog:
Deploy on push (from GitHub)
June 05, 2012 @ 10:49:13

Sean Coates has a new post today sharing an example push process for the times when you either just need to push code (without the build process) or you're just deploying something simple - a "deploy on push" hook built into your github repository.

Sometimes, you just need to deploy code when it's ready. You don't need a build; you don't need to run tests - you just need to push code to a server. If you use git and GitHub (and I think you should be using GitHub), you can easily deploy on push. [...] There are really only three things that you need, in most cases, to make this work: a listener script, a deploy key and associated SSH configuration, and a post-receive hook.

He explains what each part of the process does and includes the simple PHP script that github calls to make the deployment (it's specific to his example, but you get the idea). He walks you through setting up the deploy key (a SSH key generated on your server) and how to get SSH to use this key when github comes knocking.

0 comments voice your opinion now!
github deployment push hook tutorial


blog comments powered by Disqus

Similar Posts

Jeff Moore's Blog: PHP as a Deployment Platform

Juozas Kaziukenas' Blog: Web scraping with PHP and XPath

IBM developerWorks: MVC with Agavi - Add forms and database support with Agavi and Doctrine

CodeIgniter.com: Amazing Progress Report & Addition of IRC to CodeIgniter.com

Stefan Mischook's Blog: Object Oriented PHP Tutorial Updated - Steps 18 - 22


Community Events

Don't see your event here?
Let us know!


php7 community podcast series release xdebug voicesoftheelephpant api opinion introduction framework library laravel laravel5 install interview extension unittest language example

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework