【问题标题】:How to point Appharbor to child folder of Github repository如何将 Appharbor 指向 Github 存储库的子文件夹
【发布时间】:2012-12-02 16:33:04
【问题描述】:

我在 GitHub 文件夹上有一个私有存储库,我想推送 AppHarbor,为此我已经在那里创建了应用程序,并使用以下选项映射了 GitHub 存储库。

配置 GitHub 以部署到 AppHarbor

但是我得到了失败的状态,并注意到我需要将 AppHarbor 应用程序指向子文件夹(WWWroot- 我的 Web 文件所在的位置),目前它尝试与 root 进行映射并导致错误。那么如何将 AppHarbor 指向 Github 存储库的子文件夹?

更新

映射 github 存储库后,我在 apphabor 上遇到以下错误

D:\temp\4j3jxorb.0qb\output\_PublishedWebsites\WebMatrixWebsite\src\web.config(65): error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

我认为根目录上没有解决方案文件,因此它将被视为 webmatrix 项目。但是在 github 上,我已将 asp.net 网站的源代码放在 src 文件夹以及已发布版本的 wwwroot 文件夹中,那么 appharbor 将如何考虑首先构建?

【问题讨论】:

    标签: github appharbor


    【解决方案1】:

    AppHarbor 将始终构建整个存储库的内容。从文件夹的名称来看,您没有提交带有解决方案文件的源代码。考虑使用这种方法,因为这样可以更轻松地控制 AppHarbor 部署的内容。详情在这里:http://support.appharbor.com/kb/getting-started/build-process-and-solution-file-convention

    【讨论】:

      【解决方案2】:

      我来到这里是想让 AppHarbor 将应用程序根设置为像 OP 这样的子目录时遇到问题。然而,我只是在 wwwroot/index.htm 推送了一个包含一个文件的存储库,令我惊讶的是,AppHarbor 自动找到了该文件并显示它,无需配置。

      【讨论】:

        猜你喜欢
        • 2017-06-21
        • 2022-01-09
        • 2019-03-06
        • 2014-04-30
        • 2012-02-05
        • 1970-01-01
        • 1970-01-01
        • 2023-04-02
        • 2021-05-13
        相关资源
        最近更新 更多