Google App Engine标准环境上的WordPress:无法上传cron.yaml

时间:2019-11-20 14:59:51

标签: wordpress google-app-engine cron

我刚刚按照以下步骤在Google Cloud Platform App Engine STANDARD环境中安装了WordPress的新副本:https://cloud.google.com/community/tutorials/run-wordpress-on-appengine-standard

gcloud app deploy cron.yaml

有点问题

我已经复查了很多次cron.yaml文件,已被覆盖,现在非常空(cron:

我总是收到此错误:

xxx@xxx:~/wordpress$ gcloud app deploy cron.yaml
Configurations to update:

descriptor:      [/home/xxx/wordpress/cron.yaml]
type:            [cron jobs]
target project:  [xxx-news]


Do you want to continue (Y/n)?  y

Updating config [cron]...failed.                                                                                                                                                                                                                                         
ERROR: gcloud crashed (TypeError): sequence item 0: expected str instance, bytes found

1 个答案:

答案 0 :(得分:0)

只是一个猜测,但是您是否正在使用MS Visual Studio编辑代码?我完全忘记了它的名字,但是默认情况下,VS会在它创建的所有文件中添加一些奇怪的两字节unicode标头。该标题在某些文本编辑器中不可见,因此您可能不知道它在那里。您也无法在不显示它的文本编辑器中删除它。

尝试使用emacs或其他一些文本编辑器从头开始创建新的cron.yaml。