0

我正在尝试设置一个 cpanel 托管的存储库,以使用 laravel 项目进行持续部署,该项目也托管在 github 存储库中。目标是使用子域作为测试服务器(如我电脑上的 xampp),以便在与我用于生产的共享托管服务器相同的环境中工作。

当我必须将更改推送到 cpanel 存储库时,问题就出现了。为了达到这一点,我已经采取了一些步骤:

  • 从 cpanel 的 git 版本控制创建了一个空存储库
  • 克隆 github 的仓库到我的电脑
  • 将 cpanel 存储库作为远程存储库添加到本地存储库
  • 在 cpanel repo 上执行git config receive.denycurrentbranch updateInstead(通过 ssh)
  • 在本地 repo 上执行git push -u cpanel Development --exec=/usr/local/cpanel/3rdparty/bin/git-receive-pack以推送所有文件和更改。cpanel远程在哪里,Development是我本地仓库上的分支名称

在此之后,我得到以下信息:

jailshell: C:/Program: No such file or directory
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我真的不明白为什么我会遇到这个问题,我试图通过以下方式做到这一点:

  • 在 cpanel 上创建一个空仓库 / 将 cpanel 仓库克隆到本地 / 获取 github 仓库 / 从本地推送到 cpanel 仓库
  • 将 repo 克隆到 cpanel / 将 cpanel repo 克隆到本地 / 将更改从本地推送到 cpanel repo

他们都把我带到了控制台中的相同错误。有没有办法建立一个 cpanel repo 来进行持续集成?

任何帮助将不胜感激。提前致谢

4

0 回答 0