Deploy to Heroku after reinstalling Ubuntu

Asked

Viewed 48 times

0

Good afternoon! I had to reinstall Ubuntu on my machine, and that’s why I was deploying it to Heroku. But now that I’ve reinstalled everything I can’t deploy anymore.

I cloned the git project and can push to the remote repository of the quiet gitlab, but not to Heroku. The application is already created in Heroku and all configured. I have to clone from the Heroku repository?

  • you have already installed Heroku cli? on the machine? to clone you have to access the Heroku account and take the link from the Heroku application. example Heroku git:clone -a codisistem

  • Good afternoon! I already have Heroku CLI installed. I tried to clone the project the way you suggested, but returns the following error: ENOENT: Spawn git ENOENT

  • @Mardonisalvesbezerra I’ve even tried to update the ssh key, but also the error. But I can login and even create another app using the Heroku create command.

1 answer

1

I was able to solve the problem by removing Heroku and installing again through the repository, following this tutorial -> install Heroku by the repository

Then just generate the ssh key ssh-keygen -t rsa, log into Heroku with the command heroku login, finally, send the previously generated key heroku keys:add.

How to generate the SSH key and uploud to Heroku

Note: For those who installed Heroku with the snap, just use the commandsudo snap remove heroku.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.