简体   繁体   中英

How to deploy a PyPI Server in App Engine?

I'm trying with PyPICloud on the.yaml file there is this config

runtime: python37
service: dev-pypyserver
instance_class: F4

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



entrypoint: pserve server.ini

but the logs say: "failed to detect app after start: ForAppStart()"

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

The entrypoint should start a web server that listens on the port specified by the PORT environment variable.

By default, pypicloud uses port 6543 which is likely not the same port that the runtime is asking you to use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM