我们目前正在测试 Bitbucket 管道 Beta(到目前为止很喜欢)。不过我有一个问题。我们正在使用 git-ftp 上传我们的源/文件,但最重要的是,我们需要推送完整的子域补丁文件(Index.php 和 .htaccess),它们不会经常更改,但我们每次都必须完全推送它们而不仅仅是变化。到目前为止,我们无法使用 git-ftp 让它工作。我们做错了什么吗?
我们一直保留的错误信息是:
- git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/
没有更改 dev.iwantaspeaker.com/public_html/ 的文件。一切都是最新的。
我在下面包含了一些代码,希望对您有所帮助。谢谢。
image: samueldebruyn/debian-git
pipelines:
branches:
develop:
- step:
script:
- echo "Pipeline Init for dev."
- apt-get update
- apt-get -qq install git-ftp
- echo "'_$(git status -uno --porcelain | wc -l)_'"
- git status -uno --porcelain
- echo "Initiating Push site:dev Source."
- git config git-ftp.syncroot Source/
- git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/
- echo "Initiating Push site:dev subDomianPatch."
- git config git-ftp.syncroot SubDomainPatches/dev/dev_subdomain_patch/public_html/
- git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/