【问题标题】:cPanel auto deployment using git has stuck in loop使用 git 的 cPanel 自动部署陷入循环
【发布时间】:2021-02-06 15:07:01
【问题描述】:

我使用 cPanel 的 git 版本直接从 Github repo 进行部署。我已添加 .cpanel.yml 文件以自动将文件夹复制到 /public_html 文件夹中。

但现在由于某种原因,部署陷入了无限循环,并且正在耗尽所有资源,例如 I/O 使用率。

有人可以就此事提供帮助吗?我什至无法从列表中删除正在进行的回购。我尝试从 /repositories/ 中删除 repo 文件夹,但它也没有做任何更改。

它卡在了之前的某个提交上。

.cpanel.yml 文件如下:

---
deployment:
  tasks:
    - export DEPLOYPATH=/home/user/public_html/
    - /bin/cp /. $DEPLOYPATH

【问题讨论】:

    标签: git yaml hosting cpanel


    【解决方案1】:

    我不知道为什么你的部署卡住了,但我通常是这样做的:

    ---
    deployment:
      tasks:
           - export DEPLOYPATH=/home/user/public-html/
           - /bin/cp -R * $DEPLOYPATH
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-09
      • 1970-01-01
      • 1970-01-01
      • 2019-11-12
      • 2017-03-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多