Google app engine 谷歌应用程序引擎中不显示字体
我在使用整个应用程序引擎时遇到问题 通过Google Chrome开发者控制台,我发现以下错误: 资源被解释为字体,但使用MIME类型text/html:“”传输。 资源被解释为字体,但使用MIME类型text/html:“”传输 我的文件app.yaml wordpress如下:Google app engine 谷歌应用程序引擎中不显示字体,google-app-engine,font-awesome,Google App Engine,Font Awesome,我在使用整个应用程序引擎时遇到问题 通过Google Chrome开发者控制台,我发现以下错误: 资源被解释为字体,但使用MIME类型text/html:“”传输。 资源被解释为字体,但使用MIME类型text/html:“”传输 我的文件app.yaml wordpress如下: application: app-001 version: app-001 Runtime: php api_version: 1 inbound_services: - Warmup handlers: - U
application: app-001
version: app-001
Runtime: php
api_version: 1
inbound_services:
- Warmup
handlers:
- Url: /(.*\.(htm$|html$|css$|js$))
static_files: wordpress / \ 1
upload: wordpress /.* \. ($ htm | html $ | $ css | js $)
application_readable: true
- Url: /wp-content/(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress / wp-content / \ 1
upload: wordpress / wp-content /.* \. (ico $ | $ jpg | png $ | gif $)
application_readable: true
- Url: /(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress / \ 1
upload: wordpress /.* \. (ico $ | $ jpg | png $ | gif $)
- Url: /wp-admin/(.+)
script: wordpress / wp-admin / \ 1
secure: always
- Url: / wp-admin /
script: wordpress / wp-admin / index.php
secure: always
- Url: /wp-login.php
script: wordpress / wp-login.php
secure: always
- Url: /wp-cron.php
script: wordpress / wp-cron.php
login: admin
- Url: /xmlrpc.php
script: wordpress / xmlrpc.php
- Url: /wp-(.+).php
script: wordpress / wp- \ 1.php
- Url: /(.+)?/?
script: wordpress / index.php
- Url: /(.*\.otf)
static_files: wordpress / wp-includes / fonts / \ 1
upload: wordpress / wp-includes / fonts / (. * \. otf)
mime_type: application / x-font-otf
- Url: /wp-content/(.*\.ttf)$
static_files: wordpress / wp-content / \ 1
upload: wordpress / wp-content /.* \. $ ttf
mime_type: application / x-font-ttf
- Url: /wp-content/(.*\.otf)$
static_files: wordpress / wp-content / \ 1
upload: wordpress / wp-content /.* \. otf $
mime_type: application / x-font-otf
- Url: /wp-content/(.*\.woff)$
static_files: wordpress / wp-content / \ 1
upload: wordpress / wp-content /.* \. $ WOFF
mime_type: application / x-font-WOFF
请帮我解决这个问题。
非常感谢我修复了在app.yaml文件中插入此文件的问题
handlers:
- url: /(.*\.woff)
static_files: wordpress/\1
upload: wordpress/(.*\.woff)
mime_type: application/font-woff
- url: /(.*\.svg)
static_files: wordpress/\1
upload: wordpress/(.*\.svg)
mime_type: image/svg+xml
- url: /(.*\.eot)
static_files: wordpress/\1
upload: wordpress/(.*\.eot)
mime_type: application/vnd.ms-fontobject
- url: /(.*\.ttf)
static_files: wordpress/\1
upload: wordpress/(.*\.ttf)
mime_type: application/x-font-ttf
- url: /(.*\.otf)
static_files: wordpress/\1
upload: wordpress/(.*\.otf)
mime_type: application/x-font-otf