Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my heroku app empty when I clone it (it should be parse-server)

I created a heroku app using the Deploy to heroku button on this page https://github.com/ParsePlatform/parse-server-example

I can check its running by running code similar to the following which returns results in terminal.

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

I want to update the cloudcode, my understanding on how to do this is to git clone the app, make a change, commit then push it back up.

But when I run heroku git:clone -a MY-APP it gives me the following warning

Cloning into 'MY-APP'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

And the MY-APP folder is empty.

What am I doing wrong?

It should have something in it right? Otherwise the curl... command wouldn't work?

Edit: This question and answer solved my problem. Apparently it is a bug with heroku. How can I host my own Parse Server on Heroku using MongoDB?

like image 968
Lango Avatar asked Apr 03 '16 23:04

Lango


1 Answers

Clone the server and add heroku remote manually:

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
like image 68
everyman Avatar answered Sep 20 '22 08:09

everyman