【问题标题】:WordPress on Google App Engine Standard Environment: impossible to upload cron.yamlGoogle App Engine 标准环境中的 WordPress:无法上传 cron.yaml
【发布时间】:2019-11-20 14:59:51
【问题描述】:

我刚刚按照以下步骤在 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

【问题讨论】:

  • 我使用了相同的教程,并且能够部署 cron.yaml。你能在这里分享你的 cron.yaml 并检查是否有什么问题吗?
  • 我有时会覆盖我的 cron,删除并重新创建,但无法更新 cron 文件
  • 请提供 cron.yaml 进行检查。谢谢
  • 您分享的链接对我来说非常有效,但有两点:我跳过了第 2 步。在设置下因为没有必要,并且我使用了php vendor/bin/wp-gae create 在创建新的 WordPress 项目下而不是@987654326 @

标签: wordpress google-app-engine cron


【解决方案1】:

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

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

【讨论】:

  • 不,我正在使用纳米终端:D
猜你喜欢
  • 2018-07-01
  • 2018-03-12
  • 1970-01-01
  • 2016-09-26
  • 1970-01-01
  • 2018-03-29
  • 2017-09-22
  • 2021-04-08
  • 2019-03-29
相关资源
最近更新 更多