应用程序引擎Ubuntu 14.04中的app.yaml和wp-config.php中的无效字符

时间:2014-09-11 06:14:12

标签: php wordpress google-app-engine google-cloud-platform

我已经按照谷歌应用引擎上的wordpress的github项目中描述的流程,在我的本地机器上一切顺利,我能够在本地进行设置,但是在将其部署到应用引擎时,我收到了非法字符错误可能是我尝试运行wp-admin / install.php时出现NOT FOUND错误的原因。

11:21 AM Getting current resource limits.
11:21 AM Scanning files on local disk.
2014-09-11 11:21:16,836 ERROR appcfg.py:1912 Invalid character in filename: app.yaml~ 
2014-09-11 11:21:16,898 ERROR appcfg.py:1912 Invalid character in filename: wp-config.php~ 
2014-09-11 11:21:16,901 ERROR appcfg.py:1912 Invalid character in filename: wordpress/wp-config.php~ 
11:21 AM Scanned 500 files.
11:21 AM Scanned 1000 files.
2014-09-11 11:21:17,261 ERROR appcfg.py:2514 Ignoring file '.git/objects/pack/pack-659e3e13f34cac5e023fd14bf3479a2fa77da146.pack': Too long (max 32000000 bytes, file is 65085974 bytes). 
2014-09-11 11:21:17,297 ERROR appcfg.py:2514 Ignoring file '.git/modules/wordpress/objects/pack/pack-70ed9c08282cfff33b47d644d4b2b3f6b7083123.pack': Too long (max 32000000 bytes, file is 103993167 bytes). 
11:21 AM Cloning 659 static files.
11:21 AM Cloning 1443 application files.
11:21 AM Uploading 1 files and blobs.
11:21 AM Uploaded 1 files and blobs
11:21 AM Compilation starting.
11:21 AM Compilation completed.
11:21 AM Starting deployment.
11:21 AM Checking if deployment succeeded.
11:21 AM Deployment successful.
11:21 AM Checking if updated app version is serving.
11:21 AM Completed update of app: 

我使用了项目代码附带的默认app.yaml文件,这里是app.yaml文件的内容

application: reliable-jet-694
version: wpfromstarterproject
runtime: php
api_version: 1

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)$
  application_readable: true

- 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

skip_files:
- ^(.*/)?\.zip$
- ^(.*/)?\.bat$
- ^(.*/)?\.sh$
- ^(.*/)?\.md$

如果有人能帮助我,我将非常感激,因为我急于部署这个

1 个答案:

答案 0 :(得分:1)

所以问题不在于无效字符,但我有两个版本,非wordpress版本被选为默认版本,更改设置在我的情况下运作良好。