一些帮忙的人,
我已经在 Cpanel (/home/repositories/mysite) 中设置了 GIT 存储库,并成功地将所有内容从我的本地主机推送到了其中。
但是我的挑战是 - 手动或自动部署都无法从存储库到 public_html (实时网站)。它一直显示好像正在更新,但什么也没发生。
接收后成功更新,下面是我的 .cpanel.yml 文件配置。
---
deployment:
tasks:
- export DEPLOYPATH=/home/user/public_html/
- /bin/cp -R app $DEPLOYPATH
- /bin/cp -R assets $DEPLOYPATH
exclude:
- .env
- app/Config/Email.php```
I have deleted and recreated the repository and also tried to add it onto my localhost. All is fine but the final stage is the problem.
NOTE: my localhost pushes on both github and cpanel and branch for cpanel is "main"
我也有同样的问题。以下是需要检查的几件事: