用于codeigniter php73的google云平台app.yaml
我不知道如何使用PHP7.3 gcp为codeigniter 3设置app.yaml。每个有用的链接都与php55有关。。提前谢谢用于codeigniter php73的google云平台app.yaml,php,codeigniter,google-app-engine,google-cloud-platform,app.yaml,Php,Codeigniter,Google App Engine,Google Cloud Platform,App.yaml,我不知道如何使用PHP7.3 gcp为codeigniter 3设置app.yaml。每个有用的链接都与php55有关。。提前谢谢 runtime: php73 # Replace with php73 to use the PHP 7.3 runtime handlers: # Serve a directory as a static resource. - url: /stylesheets static_dir: stylesheets # Serve images as st
runtime: php73 # Replace with php73 to use the PHP 7.3 runtime
handlers:
# Serve a directory as a static resource.
- url: /stylesheets
static_dir: stylesheets
# Serve images as static resources.
- url: /(.+\.(gif|png|jpg))$
static_files: \1
upload: .+\.(gif|png|jpg)$
# Serve your app through a front controller at index.php or public/index.php.
- url: .*
script: auto
这是我从gcp文档中得到的。它可以工作,但是css和js不能工作。所有内容都在assets文件夹中。对于css和js文件,您没有匹配的处理程序规则,它们将只匹配-url:.*规则,这是不合适的。脚本处理程序仅为php脚本设计 您需要为它们添加规则,在-url:*上面,也许可以根据应用程序的特殊需要进行以下调整:
# Serve css and js files as static resources.
- url: /(.+\.(css|js))$
static_files: assets/\1
upload: assets/.+\.(css|js)$