我使用Deploy to heroku
此页面上的按钮创建了一个heroku应用程序https://github.com/ParsePlatform/parse-server-example
我可以通过运行类似于以下返回结果的代码来检查其运行情况.
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.如何使用MongoDB在Heroku上托管我自己的Parse Server?
克隆服务器并手动添加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