【问题标题】:How to deploy a PyPI Server in App Engine?如何在 App Engine 中部署 PyPI 服务器?
【发布时间】:2021-04-11 15:45:35
【问题描述】:

我正在尝试在 .yaml 文件中使用 PyPICloud 有这个配置

runtime: python37
service: dev-pypyserver
instance_class: F4

handlers:
- url: /.*
  secure: always
  script: auto
  
default_expiration: "3s"



entrypoint: pserve server.ini

但日志显示:“启动后无法检测应用程序:ForAppStart()”

【问题讨论】:

    标签: python google-app-engine google-cloud-platform pypiserver


    【解决方案1】:

    来自https://cloud.google.com/appengine/docs/standard/python3/runtime

    入口点应该启动一个 Web 服务器,该服务器侦听由 PORT 环境变量指定的端口。

    默认情况下,pypicloud 使用端口 6543,这可能与运行时要求您使用的端口不同。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-31
      • 1970-01-01
      相关资源
      最近更新 更多