-1

I'm running an app on heroku . But unfortunately very recently I lost my files on my hdd and now I'm trying to clone back my backend on my hard drive.

i tried to run the following from heroku cli to clone my app onto my local machine:

heroku git:clone -a myAppName

But i get this error:

▸ ENOENT: spawn git ENOENT any idea what the problem is?

Thx

M.C
  • 90
  • 7

2 Answers2

1

Solution: Remove the snap version of heroku and install it via apt-get

$ sudo snap remove heroku
$ sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
$ curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install heroku
nehem
  • 12,775
  • 6
  • 58
  • 84
0

this means that git isn't found. You either need to install it or add it to your path environment variable

Jeff Dickey
  • 5,036
  • 4
  • 28
  • 39
  • Thx Jeff . I do have git on my ubuntu, but I'll give it another try . But anyway I tried that same command on a windows and it worked. – M.C Jun 17 '17 at 21:57