【发布时间】:2020-05-06 05:08:10
【问题描述】:
我有一个 Lumen/Laravel API 应用程序,当我使用默认 PHP 运行时将其部署到 App Engine Flex 时,该应用程序运行良好。
但是,当我使用自定义运行时(使用基本 PHP 运行时)时,我不断收到 NGINX 404 错误,我不明白,因为我只在 Dockerfile 中添加了 1 个额外的库
Dockerfile:
FROM gcr.io/google-appengine/php
RUN apt-get update -y
RUN apt-get install -y libdmtx-utils
app.yml:
runtime: custom
env: flex
resources:
cpu: 0.1
memory_gb: 0.6
automatic_scaling:
min_num_instances: 1
max_num_instances: 1
readiness_check:
app_start_timeout_sec: 3000
runtime_config:
document_root: public
front_controller_file: index.php
任何帮助将不胜感激!
【问题讨论】:
标签: php google-app-engine google-cloud-platform