(ctx *gcp.Context)
| 49 | } |
| 50 | |
| 51 | func validateAppEngineAPIs(ctx *gcp.Context) error { |
| 52 | supportsApis, err := appengine.ApisEnabled(ctx) |
| 53 | if err != nil { |
| 54 | return err |
| 55 | } |
| 56 | |
| 57 | usingAppEngine, err := appEngineInDeps(ctx) |
| 58 | if err != nil { |
| 59 | return err |
| 60 | } |
| 61 | |
| 62 | if supportsApis && !usingAppEngine { |
| 63 | ctx.Warnf(appengine.UnusedAPIWarning) |
| 64 | } |
| 65 | |
| 66 | if !supportsApis && usingAppEngine { |
| 67 | ctx.Warnf(appengine.DepWarning) |
| 68 | } |
| 69 | |
| 70 | return nil |
| 71 | } |
| 72 | |
| 73 | func entrypoint(ctx *gcp.Context) (*appstart.Entrypoint, error) { |
| 74 | // Check installed gunicorn version and warn if version is lower than supported |
no test coverage detected