views:

265

answers:

4

I'm looking for a tool that I can use to deploy my PHP web applications. I want to be able to work locally, then when ready, deploy to the server and create a sym link to the new one, in case it doesn't work I can go back and change the sym link. I know there are some like this that use Subversion, but are there any that use Git?

+3  A: 

Hi,

http://devblog.imedo.de/2008/06/23/wordpress-deployment-with-capistrano-2-and-git/ http://www.simplisticcomplexity.com/2006/08/16/automated-php-deployment-with-capistrano/

or search google for

capistrano for php and git

There are plenty of articles on the subject.

Regards.

mediaslave
+1. We're using capistrano to deploy our PHP app from git. Works great.
Frank Farmer
A: 

The low-tech version is to just write a few shell scripts (You can write them en php). This can work just fine, and has the benefit that you understand exactly what it's doing and can tweak it.

If you rather want something more grandiose, you can take a look at Phing. Otherwise, as already mentioned, Capistrano is used by some people, even if it's written in Ruby.

troelskn
I've never written a shell script (nor in php). Could you guide me to a tutorial that might explain how to start doing that sort of thing?
Andrew
I don't have a tutorial at hand, but maybe you can take offset in the recipe here: http://stackoverflow.com/questions/432162/does-anybody-have-a-development-staging-deploying-workflow-with-php-mysql/432824#432824
troelskn
A: 

Try this, this is what I plan on doing.

http://toroid.org/ams/git-website-howto

or

[..] dmiessler.com/blog/using-git-to-maintain-your-website

Sorry for not linking it, apparently I can't post more than one link just yet...

sublimegeek
A: 

I use Capistrano to deploy our Zend Framework application, and it works beautifully.

For a pure PHP system however, you may want to check out Phing. I've used it for automating other tasks, and it works very well.

Bryan M.