2

我们目前正在测试 Bitbucket 管道 Beta(到目前为止很喜欢)。不过我有一个问题。我们正在使用 git-ftp 上传我们的源/文件,但最重要的是,我们需要推送完整的子域补丁文件(Index.php 和 .htaccess),它们不会经常更改,但我们每次都必须完全推送它们而不仅仅是变化。到目前为止,我们无法使用 git-ftp 让它工作。我们做错了什么吗?

我们一直保留的错误信息是:

我在下面包含了一些代码,希望对您有所帮助。谢谢。

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/
4

1 回答 1

0

您可以使用文件 .git-ftp-include

https://github.com/git-ftp/git-ftp/blob/master/man/git-ftp.1.md#syncing-untracked-files

于 2018-09-24T10:32:24.177 回答