Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于codeigniter php73的google云平台app.yaml_Php_Codeigniter_Google App Engine_Google Cloud Platform_App.yaml - Fatal编程技术网

用于codeigniter php73的google云平台app.yaml

用于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

我不知道如何使用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 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)$