News Feed
Sections




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

James Morris' Blog:
Deploy a Silex App Using Git Push
July 05, 2012 @ 09:35:40

James Morris has a new post to his blog showing you how you can deploy a Silex-based application via git and a post-receive hook on the server side.

Up until a few days ago I used to use a small bash deployment script to deploy a few simple sites to my live box. The process was a git archive and extract, then an rsync to the live site. Only inspecting it recently I realised that rsync no longer sent just the changes but all of the files, I'd never noticed before as the sites were so small the deploy was over very quickly. The rsync used to work fine before as I would deploy my current working code where the timestamps on files would match the server. Since I started using git at home for dev, the git archive method timestamps the files with the latest commit's timestamp. This messes up rsync.

His process involves a checked in version of Silex, a development branch, a push of the code to the live machine and an install script to set up Silex. He includes the "technical breakdown" and the information needed to replicate it - the .gitignore, setting up password-less SSHing, setting up the server and creating the git post-receive hook (a bash script).

0 comments voice your opinion now!
git push deploy silex application hook tutorial


blog comments powered by Disqus

Similar Posts

Flexandair.com: Setting Up Zend_Amf

NETTUTS.com: CodeIgniter from Scratch: Shopping Cart

The Bakery: New Updates - Helpers, Tutorial and Articles

Rob Allen's Blog: Zend Framework Tutorials (an Update and Zend_Auth)

Ibuildings techPortal: Doing the Heavy Lifting: Gearman and Magento


Community Events

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


performance series interview opinion podcast voicesoftheelephpant introduction configure composer laravel api symfony2 release conference application php7 example framework library community

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