【问题标题】:"git ftp init" without sending all the files“git ftp init”而不发送所有文件
【发布时间】:2016-11-02 12:06:36
【问题描述】:

我们是第一次使用 BitBucket Pipelines,我们有一个完全开发和部署的 Joomla 站点。

当我尝试设置管道以推送所有新的维护更改时,它失败了,因为我需要使用“git ftp init”开始。

但这意味着将所有代码从 repo 推送到服务器,即使我已经在服务器上......这也意味着用尽我所有可用的管道时间,因为推送完整的 Joomla 网站需要 3 或 4 小时.

有没有什么方法可以在不发送所有文件的情况下“初始化”FTP,或者简单地跳过“初始化”阶段并直接进入“推送”阶段?

这是我的 YMAL 文件:

    image: samueldebruyn/debian-git

pipelines:
  default:
    - step:
        script:
          - apt-get update
          - apt-get -qq install git-ftp
          - git ftp push --user $USERNAME --passwd $PASSWORD ftp://********/public_html/

【问题讨论】:

    标签: git ftp bitbucket-pipelines git-ftp


    【解决方案1】:

    我在这里找到了答案:

    Avoid git-ftp upload if files already on server

    您可以使用“git ftp catchup”功能跳过初始化。

    【讨论】:

      猜你喜欢
      • 2019-08-22
      • 1970-01-01
      • 1970-01-01
      • 2017-10-17
      • 1970-01-01
      • 2020-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多