2016-04-03 69 views
7

我使用此页面上的Deploy to heroku按钮创建一个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 

我想更新cloudcode,我的理解是如何做到这一点是克服应用程序,做出改变,提交然后推回去。

但是当我运行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?

+0

的可能的复制[?我如何可以承载在使用MongoDB的Heroku的我自己的解析服务器(http://stackoverflow.com/questions/35389389/how-can-i-host-my-own-parse-server-on-heroku-using-mongodb) – Lango

+0

Heroku fork有同样的问题。我使用了heroku fork - 从app_origin - 到app_fix,结果是一个空的git仓库! – JRichardsz

回答

5

克隆服务器和远程手动添加的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 
相关问题