开发者

Deploy PHP project using git and free git repository

How can I deploy an existing PHP proje开发者_如何学JAVAct using Git and what is the best free git repository?


You can use github for this purpose


Checkout the free Git deploy tool from PHP Fog.


Github is generally considered best.

When I last did something like that, I simply SSH'd to the server did git clone and then had cron run a pull and update from my production "branch". You'll want to set up your git repository with your public key for the server, but instructions for that are pretty simple (I found the Windows one right off (scroll to the bottom), but it still works).


If you need a private repo for free you should use BitBucket.

Check out this PHP script for deploying from Git repositories:

https://github.com/Lyquix/php-git-deploy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜