当我克隆它时,为什么我的heroku应用程序为空(它应该是解析服务器)

时间:2016-04-03 23:42:40

标签: git heroku parse-platform parse-server

我使用此页https://github.com/ParsePlatform/parse-server-example

上的Deploy to heroku按钮创建了一个heroku应用

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

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

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

但是当我运行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的一个bug。 How can I host my own Parse Server on Heroku using MongoDB?

1 个答案:

答案 0 :(得分:8)

克隆服务器并手动添加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