【问题标题】:Deploying NodeJs to Service Fabric Cluster将 NodeJ 部署到 Service Fabric 群集
【发布时间】:2018-02-20 13:09:38
【问题描述】:

有没有人有将 RESTFul nodejs 服务部署到服务结构的经验?

什么工具是可能的,Jenkins 甚至代码交付

【问题讨论】:

    标签: node.js deployment azure-service-fabric codeship


    【解决方案1】:

    在这里找到了一篇来自微软的知识库文章,看起来你只是将它打包并放入一个文件夹位置供 Service Fabric 使用

    https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-deploy-multiple-apps

    【讨论】:

      【解决方案2】:

      要将 RESTFul node.js 服务部署到服务结构,您需要有一个 Node.js 主机 - 以实际运行您的 JavaScript。有三个选项:

      1. 创建自定义可执行文件并将其部署为 Service Fabric 来宾。示例:https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-deploy-multiple-apps

      2. 在 Service Fabric 上使用 Dicker 容器:https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-package-containers

      3. 使用 SupercondActor 在 Service Fabric 无状态服务中本地托管 Node.js API。参见 GitHub 仓库:https://github.com/SupercondActor/platform-app-angular

      【讨论】:

      • 我正在使用 ubuntu 16 在 Service Fabric 集群中部署 Restful 节点+mongo 应用程序。打包我的应用程序并安装完成后,我收到错误Error occurred in request HTTPSConnectionPool Max retry exceeded (Cause by response error (too many 504 response))。所以应用程序没有被部署
      • SupercondActor 仅适用于基于 Windows 的服务结构集群
      • 是的,我知道,我正在使用 Docker 容器,我现在已经使用端口 3000 节点应用程序部署了它。但是当我从集群 url 运行时,我没有收到 hello world 消息。 stackoverflow.com/questions/57710717/…
      • Dicker 是一个很好的错字:)
      猜你喜欢
      • 2017-08-06
      • 2019-12-02
      • 2018-03-02
      • 1970-01-01
      • 2017-01-14
      • 1970-01-01
      • 2017-07-25
      • 2023-03-07
      • 2018-12-11
      相关资源
      最近更新 更多