Nicolas Rondon
Nicolas Rondon

Reputation: 244

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()"

Upvotes: 1

Views: 105

Answers (1)

Dustin Ingram
Dustin Ingram

Reputation: 21520

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.

Upvotes: 2

Related Questions