gpt4 book ai didi

azure - 从非根目录部署 Bot Service Node.js

转载 作者:行者123 更新时间:2023-12-03 04:24:58 25 4
gpt4 key购买 nike

我有机器人服务和以下结构:

git-root
¦
+--- mybot(bot service app)
¦ ¦
¦ +--- messages (all js code; ex. index.js)
¦ +--- PostDeployScripts (default script created from template, no changes)
¦
+--- other app

采纳 another post 的推荐。我这样做:Azure -> 我的机器人 -> 设置 -> 应用程序设置 -> (PROJECT = mybot) -> 保存 -> 持续集成 -> 同步。

结果:机器人未从 mybot 目录部署。

一些注释:

  • 我希望避免 git-root 中的任何配置文件
  • 我在网上找到的所有建议都有指向 .csproj 文件的链接,但我没有。我使用默认的 Bot Service 模板和 Intellij IDEA 进行编码。

最佳答案

您需要一个自定义部署脚本来告诉azure如何部署您的应用程序。该部署脚本位于您的 gitroot 中。如果您不想提交 git 存储库根目录中的 .deployment 文件,则可以通过应用设置进行配置。您必须为命令配置应用设置,以指向您的自定义部署脚本。请参阅此 wiki 了解更多信息 https://github.com/projectkudu/kudu/wiki/Customizing-deployments

关于azure - 从非根目录部署 Bot Service Node.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44372353/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com