News for hackers. Stuff that matters.
Re:I Like PHP by FuzzyDunlop on Wednesday August 10, 2011 @05:40PM (#2870336)
The best one has to be running your site from a git repo.

I'm not sure why running old code on an old server that has support for the old code is considered a good thing about PHP. I love BASIC because I can boot up a C64 and the code I wrote 20 years ago still works today!

Re:I Like PHP by billmcneale on Wednesday August 10, 2011 @08:35PM (#2870837)
> The best one has to be running your site from a git repo.

What's wrong with that? `git pull` to update everything to the latest HEAD, `git co -- HEAD~1` to roll back the latest update, `git diff` to see the latest differences, etc...

This repo doesn't have to be the development repo, just a specialized non-bare repo that's used just for production. It works great for simple sites that don't require extensive deployment infrastructure.

Re:I Like PHP by twinge on Wednesday August 10, 2011 @09:57PM (#2871014)
Careful with that, git operations aren't atomic. Safer to keep two git dirs and flip a symlink between them between pulls.