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

标签 git heroku parse-platform parse-server

我使用此页面上的部署到 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/

相关文章:

android - 如何在使用 Android 代码时使用 git 和 repo 工具创建分支

javascript - Rails 4 中两个不同的编译资源

git - 无法运行解析仪表板

java - Rest API 在部署到 heroku 时以 html 响应

python - 使用 Django 传递文件对象

Git:为什么 git 在我还没有 pull 更新时说 "your branch is up to date with origin/main"?

git - 如何使用git pull 特定目录

git - 为什么 "git flow feature pull"不跟踪?

javascript - 解析 CloudCode 的执行顺序

ios - 如何检索 Facebook 好友列表并保存以供解析?