【问题标题】:Why is my heroku app empty when I clone it (it should be parse-server)为什么我的 heroku 应用程序在克隆时是空的(它应该是解析服务器)
【发布时间】:2016-07-23 09:42:08
【问题描述】:

我使用此页面上的Deploy to heroku 按钮https://github.com/ParsePlatform/parse-server-example 创建了一个heroku 应用程序

我可以通过运行类似于以下在终端中返回结果的代码来检查它的运行情况。

curl -X GET \               
  -H "X-Parse-Application-Id: ********************" \
  -H "X-Parse-Master-Key: *******************" \
  http://MY-APP.herokuapp.com/parse/classes/Speech

我想更新云代码,我对如何执行此操作的理解是 git clone 应用程序,进行更改,提交然后将其推回。

但是当我运行 heroku git:clone -a MY-APP 时,它给了我以下警告

Cloning into 'MY-APP'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

MY-APP 文件夹是空的。

我做错了什么?

里面应该有东西吧?否则curl... 命令不起作用?

编辑:这个问答解决了我的问题。显然这是heroku的一个错误。 How can I host my own Parse Server on Heroku using MongoDB?

【问题讨论】:

标签: git heroku parse-platform parse-server


【解决方案1】:

克隆服务器并手动添加heroku远程:

git clone https://github.com/parse-community/parse-server-example.git your-app-name
cd your-app-name
git remote add heroku https://git.heroku.com/your-app-name.git

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-21
    • 2018-08-08
    • 1970-01-01
    • 1970-01-01
    • 2016-07-16
    • 2013-04-25
    • 2010-11-28
    • 2023-03-08
    相关资源
    最近更新 更多