我遵循了谷歌应用程序引擎上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$
如果有人能帮我,我将不胜感激,因为我正急于部署这个
所以问题不在于无效字符,但我有两个版本,非wordpress版本被选为默认版本。在我的情况下,更改设置效果很好。