2016-09-21 110 views
0

我試圖按照https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/上的說明操作。我有一些疑問,在接下來的步驟:在爲Google App Engine設置Wordpress時將wp-config.php放在哪裏

enter image description here

的說明似乎意味着應該有在wordpress目錄wp-config.php。然而,如從GitHub克隆,存在上述主目錄中的wp-config.php

enter image description here

wordpress目錄爲空。

我正在考慮兩個方案:
1)編輯wp-config.php並使其保持它在哪裏,或者
2)編輯wp-config.php,並將其移動到wordpress子目錄。

這兩種方法都是正確的嗎?另外,初學者項目中是否有足夠的文件來啓動Wordpress,或者我可能必須自己下載並將提取的內容放入wordpress目錄中?

編輯
再次感謝GAEfan的回答。我再次試圖克隆Github的資源庫,但wordpress目錄仍然是空的:

[email protected]:~/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. 
[email protected]:~/Website$ cd app* 
[email protected]:~/Website/appengine-php-wordpress-starter-project$ cd wordpress 
[email protected]:~/Website/appengine-php-wordpress-starter-project/wordpress$ ls 
[email protected]:~/Website/appengine-php-wordpress-starter-project/wordpress$ 

不過,我已經注意到,在Github上,該wordpress目錄本身是另一個Github上項目的鏈接:

enter image description here enter image description here

我想我要克隆所有的「子模塊」在其各自的目錄中呢?

回答

1

該wordpress目錄應該是充滿文件!你的app.yaml被設置爲在那裏。所以,wp-config.php應該在其中,以及許多其他文件。

請嘗試再次下載。我的下載是:appengine-php-wordpress-starter-project_build_linux_mac 2

enter image description here

相關問題