2014-06-25 63 views
0

我想在Heroku上建立WordPress作爲下面的文章:如何在Heroku上安裝WordPress?

這裏的教程一步一步的得到一個WordPress.org安裝在Heroku上的雪松堆棧上運行:

  1. 創建GitHub回購
  2. 然後使用GitHub作爲源的上游創建本地回購。基本上喜歡它說,新的回購頁:

    cd REPO-NAME 
    # Create the readme file... use your favorite editor. 
    # Put in something informative 
    mate README.markdown 
    git add . 
    git remote add origin [email protected]:brookr/REPO-NAME.git 
    git push -u origin master 
    

我已經下載Cygwin的,安裝的Git。

  1. 我已經根據https://help.github.com/articles/create-a-repo

enter image description here

  1. mate README.markdown不起作用創建GitHub庫。

enter image description here

我怎樣才能做到這一點?

+1

該教程是錯誤的。非常錯誤。在你完成'git add .'之後,你需要在'git push'之前使用'git commit'提交。 –

+0

按照我的回答建議,您是否能夠使用其他編輯器工作? – Chris

回答

0

正如the article you linked提到,mate是一個簡單的例子文本編輯器:

mate README.markdown # Create the readme file... use your favorite editor. Put in something informative

在這種情況下,它的command-line interface to Textmate,這僅適用於OSX。

你可以使用Sublime Text,Emacs,Vim,Notepad ++,幾乎任何東西。即使記事本可能的工作,雖然它只有Windows的行結尾可能會麻煩事。

由於紙杯蛋糕mentions in the comments,本教程中的Git命令也需要一些調整。 git add階段更改,然後與git commit承諾。 git push推動承諾的變化,所以如果你不git commit你不會推任何東西。

雖然文章看起來與您想要的非常接近,但文章中可能還有其他小錯誤。

0

github上的回購是空的。沒有什麼可以克隆的。

「git clone REMOTE LOCAL」命名/命名本地目錄。所以你的下一個命令應該是「cd 99catfacts.com」,如果遠程存在的話可以被克隆。

我該怎麼做?

https://devcenter.heroku.com/categories/php

這是測試版,但比好;克隆這個,打移動目標x,有WP站點。