【问题标题】:how to upload html file into cloude using predix如何使用前缀将html文件上传到云端
【发布时间】:2016-12-11 19:31:01
【问题描述】:

将 html 文件上传到云中的程序是什么。我尝试使用 predix 邮件链接。但是给出了错误 403。任何人都可以使用 predix 平台链接将 html 文件上传到云中。请务必完整。

【问题讨论】:

    标签: google-cloud-endpoints


    【解决方案1】:

    hello world 是一个 html 文件。请试试这个。 https://www.predix.io/resources/tutorials/journey.html#1719

    您可以在您的微服务中提供您推送到云端的文件。请参阅 Spring Boot 文档中的其余端点 /static。尝试微服务模板项目以获得一些想法 https://www.predix.io/resources/tutorials/tutorial-details.html?tutorial_id=1523&tag=1719&journey=Hello%20World&resources=1475,1569,1523

    【讨论】:

      【解决方案2】:

      我收集了不同语言的 Predix.io 应用程序,包括静态 HTML、Angular、Java 甚至 Scala 等。

      请看

      https://github.com/SVyatkin/CF-Hello-World-examples

      根据您关于 HTML 的问题,它在集合中以及仅使用

      https://github.com/SVyatkin/CF-Hello-World-examples/tree/master/hello-html

      $ git clone https://github.com/SVyatkin/CF-Hello-World-examples.git
      $ cd CF-Hello-World-examples/hello-html
      $ cf push -m 128M -b predix_openresty_buildpack html-hello
      $ curl https://html-hello.run.aws-usw02-pr.ice.predix.io returns "HTML Predix.io - Hello World Example" 
      

      【讨论】:

        猜你喜欢
        • 2011-07-12
        • 1970-01-01
        • 2023-01-09
        • 1970-01-01
        • 2017-12-10
        • 1970-01-01
        • 2021-11-26
        • 1970-01-01
        相关资源
        最近更新 更多