从Git部署一个PHP项目到没有安装Git的服务器

问题描述:

我需要找到一种将git repo中存储的PHP项目部署到没有git安装的登台和生产服务器的方法。目前为止,我发现的脚本(即Capistrano)需要在目标服务器上使用Git。

I need to find a method of deploying a PHP project stored in a git repo to a staging and production server that do not have git installed. Scripts I've found so far (ie Capistrano) require Git on the target server.

不幸的是,我的主机不允许这样做,到目前为止的唯一方法是通过标准的FTP,我保留丢失的文件。这使得不专业的外观。

Unfortunately, my host does not allow this, and the only way so far is via standard FTP, with which I keep missing files. This makes for an unprofessional look.

我希望能够从我的本地git repo部署,这将检查目标上的.git文件夹,以查看哪个版本在那里,然后使目标服务器备份当前版本,然后仅覆盖被更改的文件被覆盖。

I would like to be able to deploy from my local git repo, which will check the .git folder on the target to see which version is on there, then cause the target server to backup the current version and then overwrite it with only the changed files being pushed.

最好是PHP中有一个Web界面。

Preferably something in PHP with a web interface.

不要问我很多...)

任何人都有/看到这样的东西? >

Anyone out there got/seen anything like this?

有三个git-ftp脚本允许您将git存储库推送到FTP服务器。

There are three git-ftp scripts which allow you to "push" a git repository to a FTP server.

  • git-ftp (bash)
  • git-ftp (python)
  • PHPloy (php)