<i id='COU1X'><tr id='COU1X'><dt id='COU1X'><q id='COU1X'><span id='COU1X'><b id='COU1X'><form id='COU1X'><ins id='COU1X'></ins><ul id='COU1X'></ul><sub id='COU1X'></sub></form><legend id='COU1X'></legend><bdo id='COU1X'><pre id='COU1X'><center id='COU1X'></center></pre></bdo></b><th id='COU1X'></th></span></q></dt></tr></i><div id='COU1X'><tfoot id='COU1X'></tfoot><dl id='COU1X'><fieldset id='COU1X'></fieldset></dl></div>

    <small id='COU1X'></small><noframes id='COU1X'>

      1. <tfoot id='COU1X'></tfoot>
        <legend id='COU1X'><style id='COU1X'><dir id='COU1X'><q id='COU1X'></q></dir></style></legend>
          <bdo id='COU1X'></bdo><ul id='COU1X'></ul>

      2. 在构建服务器上使用 VCS 在 GitHub 上使用 Composer

        时间:2023-05-21
            <bdo id='wpRt8'></bdo><ul id='wpRt8'></ul>
          • <i id='wpRt8'><tr id='wpRt8'><dt id='wpRt8'><q id='wpRt8'><span id='wpRt8'><b id='wpRt8'><form id='wpRt8'><ins id='wpRt8'></ins><ul id='wpRt8'></ul><sub id='wpRt8'></sub></form><legend id='wpRt8'></legend><bdo id='wpRt8'><pre id='wpRt8'><center id='wpRt8'></center></pre></bdo></b><th id='wpRt8'></th></span></q></dt></tr></i><div id='wpRt8'><tfoot id='wpRt8'></tfoot><dl id='wpRt8'><fieldset id='wpRt8'></fieldset></dl></div>
            <tfoot id='wpRt8'></tfoot>

              1. <small id='wpRt8'></small><noframes id='wpRt8'>

                  <tbody id='wpRt8'></tbody>
                <legend id='wpRt8'><style id='wpRt8'><dir id='wpRt8'><q id='wpRt8'></q></dir></style></legend>

                • 本文介绍了在构建服务器上使用 VCS 在 GitHub 上使用 Composer 和私有存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我的 compsoser.json 使用来自我们组织 Github 帐户的 2 个私有存储库,如下所示.

                  My compsoser.json uses 2 private repositories from our Organisation Github Account and is as follows.

                  {
                      "name": "API",
                      "repositories": [
                        {
                          "type": "vcs",
                          "url": "git@github.com/company/private.git"
                        },
                        {
                          "type": "vcs",
                          "url": "git@github.com/company/private2.git"
                        }
                      ],
                      "require": {
                          "php": ">=5.3.3",
                          "zendframework/zendframework": ">2.1.3",
                          "doctrine/mongodb-odm": "dev-master",
                          "doctrine/doctrine-mongo-odm-module": "dev-master",
                          "company/private": "dev-master",
                          "company/private2": "dev-master"
                      }
                  }
                  

                  我们已经设置了 SSH 密钥并将它们添加到我们的临时服务器上的授权密钥中.当我们运行 git clone 时,它​​运行良好,不需要任何凭据.

                  We've setup SSH keys and added them to the authorized keys on our staging server. When we run git clone it works perfectly and isn't asking for any credentials.

                  然而,当我们运行 composer update 时,存储库的获取失败,因为 composer 无权访问存储库.

                  However, when we run composer update the fetching of the repositories fails because composer doesn't have access to the repositories.

                  由于这是以非交互式方式运行的,因为这是构建脚本的一部分,我们无法输入凭据并希望将其自动化.

                  Since this is ran in a non-interactive way as this is part of a build script we can't enter credentials and like to have this automated.

                  我们可以做些什么来让 Composer 在构建期间访问我们的私有存储库?

                  What can we do to let composer have access to our private repo's during the build?

                  推荐答案

                  您可以配置 composer 使用密钥文件访问私有仓库.

                  You can configure composer to use key files to access private repository.

                  更多信息:https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md#security

                  这篇关于在构建服务器上使用 VCS 在 GitHub 上使用 Composer 和私有存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:网站被黑,如何使用 SED/GREP 删除恶意代码 下一篇:特定文件类型的 Vim inoremap

                  相关文章

                  最新文章

                  • <bdo id='otimQ'></bdo><ul id='otimQ'></ul>

                  <small id='otimQ'></small><noframes id='otimQ'>

                  1. <legend id='otimQ'><style id='otimQ'><dir id='otimQ'><q id='otimQ'></q></dir></style></legend>

                    1. <tfoot id='otimQ'></tfoot>
                    2. <i id='otimQ'><tr id='otimQ'><dt id='otimQ'><q id='otimQ'><span id='otimQ'><b id='otimQ'><form id='otimQ'><ins id='otimQ'></ins><ul id='otimQ'></ul><sub id='otimQ'></sub></form><legend id='otimQ'></legend><bdo id='otimQ'><pre id='otimQ'><center id='otimQ'></center></pre></bdo></b><th id='otimQ'></th></span></q></dt></tr></i><div id='otimQ'><tfoot id='otimQ'></tfoot><dl id='otimQ'><fieldset id='otimQ'></fieldset></dl></div>