【问题标题】:How to install WordPress on Heroku?如何在 Heroku 上安装 WordPress?
【发布时间】:2014-06-25 08:10:52
【问题描述】:

我想在 Heroku 上构建 wordpress,如下文章:

这是在 Heroku 的 Cedar 堆栈上运行 WordPress.org 安装的分步教程:

  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 git@github.com:brookr/REPO-NAME.git
    git push -u origin master
    

我已经下载了 Cygwin,安装了 Git。

  1. 我根据https://help.github.com/articles/create-a-repo创建了GitHub repo

  1. mate README.markdown 不起作用。

我该怎么做?

【问题讨论】:

  • 教程有误。大错特错。在您执行git add . 之后,您需要使用git commit 提交,然后再尝试使用git push 推送任何内容。
  • 您能否按照我的回答中的建议,让它与其他编辑器一起使用?

标签: wordpress git heroku github


【解决方案1】:

正如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 的行尾可能会搞砸。

作为 Cupcake mentions in the comments,本教程中的 Git 命令也需要一些调整。 git add stages 更改,然后使用git commit 提交。 git push 推送已提交的更改,所以如果你不 git commit 你将不会推送任何内容。

文章中可能还有其他小错误,尽管它看起来与您想要的相当接近。

【讨论】:

    【解决方案2】:

    github 上的 repo 是空的。没有可克隆的内容。

    “git clone REMOTE LOCAL”创建/命名本地目录。因此,如果存在要克隆的遥控器,您的下一个命令应该是“cd 99catfacts.com”。

    我该怎么做?

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

    它是测试版,但比;克隆它,击中移动目标 x,拥有 WP 站点。

    【讨论】:

      猜你喜欢
      • 2017-07-22
      • 2015-06-12
      • 2017-01-04
      • 2020-11-01
      • 2017-09-21
      • 2018-06-14
      • 2019-01-31
      • 2013-05-31
      • 2012-07-27
      相关资源
      最近更新 更多