在为Google App Engine设置Wordpress时将wp-config.php置于何处

时间:2016-09-21 21:57:48

标签: wordpress google-app-engine

我正在尝试按照https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/上的说明操作。我对以下步骤有些怀疑:

enter image description here

说明似乎暗示wp-config.php目录中应该有wordpress。但是,从Github克隆,上面的主目录中有一个wp-config.php

enter image description here

wordpress目录为空。

我正在考虑两种选择:
1)编辑wp-config.php并将其保留原位或
2)编辑wp-config.php并将其移至wordpress子目录。

这些方法中的任何一种都是正确的吗?此外,启动项目中是否有足够的文件来启动Wordpress,或者我是否必须自己下载并将提取的内容放在wordpress目录中?

修改
再次感谢GAEfan的回答。我再次尝试克隆Github存储库,但wordpress目录仍为空:

kurt@kurt-ThinkPad:~/Website$ git clone https://github.com/GoogleCloudPlatform/appengine-php-wordpress-starter-project.git
Cloning into 'appengine-php-wordpress-starter-project'...
remote: Counting objects: 575, done.
remote: Total 575 (delta 0), reused 0 (delta 0), pack-reused 575
Receiving objects: 100% (575/575), 79.22 MiB | 11.21 MiB/s, done.
Resolving deltas: 100% (317/317), done.
Checking connectivity... done.
kurt@kurt-ThinkPad:~/Website$ cd app*
kurt@kurt-ThinkPad:~/Website/appengine-php-wordpress-starter-project$ cd wordpress
kurt@kurt-ThinkPad:~/Website/appengine-php-wordpress-starter-project/wordpress$ ls
kurt@kurt-ThinkPad:~/Website/appengine-php-wordpress-starter-project/wordpress$

但是,我注意到在Github上,wordpress目录本身就是另一个Github项目的链接:

enter image description here enter image description here

我假设我必须在各自的目录中克隆所有'子模块'?

1 个答案:

答案 0 :(得分:1)

wordpress目录应该是文件!你的app.yaml设置为看那里。因此,wp-config.php应该包含在内,以及许多其他文件。

尝试重新下载。我的下载是:appengine-php-wordpress-starter-project_build_linux_mac 2

enter image description here