我使用此页面上的部署到 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 的一个错误。 How can I host my own Parse Server on Heroku using MongoDB?
最佳答案
克隆服务器并手动添加 heroku remote:
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
关于git - 为什么我的 heroku 应用程序在克隆时是空的(它应该是解析服务器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36392651/