Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cloned project from github. heroku does not work

I cloned a project from github over to my desktop. I used to work on it form my laptop.

However, on laptop heroku does not seem to work for this app eventhough i have it installed.

First problem:

heroku open >No app specified. >Run this command from app folder or set it adding --app <app name> 

I did not have to specify the --app on my laptop. Because I guess I did command heroku create initially on the lapop.

Second Probelm:

git push heroku master 

gives errors

fatal: 'heroku' does not appear to be a git repository fatal: The remote end hung up unexpectedly 

and heroku list

says

 !   This version of the heroku gem has been deprecated.  !   Please update it by running: gem update heroku 
like image 464
ratan Avatar asked Feb 19 '10 04:02

ratan


People also ask

How do I run a project from GitHub after cloning?

Clone a GitHub repo and then open a projectOpen Visual Studio 2019 version 16.7 or earlier. On the start window, select Clone or check out code. Enter or type the repository location, and then select Clone. Visual Studio opens the project from the repo.

How do I import from GitHub to Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

How do you fix warning you appear to have cloned an empty repository?

This happens when you are cloning a freshly created repository with no commits. As it says, it is just a warning. If it is expected that there is nothing in the repository, you can go ahead and add files and commit and push back. If it is not supposed to be empty, contact the person/admin who gave you the link.


1 Answers

First do:

git remote add heroku [email protected]:{my-project-name}.git 

Where you replace {my-project-name} with the name of the Heroku application as it appears in your Heroku account. For example, if your Heroku account says you have an application named flowing-water-397, then the line would be:

git remote add heroku [email protected]:flowing-water-397.git 

Then Git and the Heroku gem will know that this Git repo is connected to a Heroku.com application. Then you can do things such as:

git push heroku master heroku open 

Finally, learn a little bit more about Git Remotes.

like image 147
yfeldblum Avatar answered Sep 20 '22 16:09

yfeldblum