Heroku issues encountered after cloning a GitHub project

I cloned a project from GitHub onto my desktop. Previously, I had been working on it from my laptop without any issues.

Now, however, I face problems with Heroku on my desktop even though it is installed.

First Issue:

When I execute:

heroku open

I receive an error message:

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

On my laptop, I didn’t need to specify the --app parameter since I believe I ran heroku create originally on that machine.

Second Issue:

When I run:

git push heroku master

I encounter the following error:

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

Additionally, when I check with heroku list, I see:

!   This version of the heroku gem has been deprecated.
!   Please update it by running: gem update heroku

What steps can I take to resolve these issues and successfully set up Heroku on my desktop?

These Heroku issues scream that you need better deployment automation. Git remote problems and app linking headaches happen when you’re manually managing deployments across different machines.

Stop wrestling with Heroku CLI commands and git remotes - automate the whole thing. Set up a workflow that triggers when you push to main. It’ll build your app, run tests, and deploy automatically without touching Heroku commands.

I’ve watched teams burn hours on these same git remote issues. The fix isn’t repairing the remotes - it’s ditching manual management entirely.

Build automation that:

  • Watches your GitHub repo for changes
  • Builds and tests code automatically
  • Deploys to Heroku (or anywhere) seamlessly
  • Sends deployment status notifications

Just push code to GitHub and let everything else run automatically. No more wondering which machine has the right remotes.

Latenode makes this deployment automation super easy to set up. You can connect GitHub, Heroku, and notification services in one visual workflow.

Been there multiple times switching between dev machines. Your local git config doesn’t know about the Heroku app connection since you set it up on your laptop originally. Run heroku git:remote -a your-app-name - it’s cleaner than manually adding the remote URL. This automatically configures the heroku remote for your existing app. Find your app name by logging into the Heroku dashboard or using heroku apps if that works. Once the remote’s configured properly, both heroku open and git push heroku master should work fine. Also definitely upgrade from that old gem version to the modern Heroku CLI like the warning says.

your git setup got messed up during the clone. run git remote -v to see what remotes you have. you’ll probably need to re-add the heroku remote: git remote add heroku https://git.heroku.com/your-app-name.git. also update that gem while you’re at it!

Your desktop doesn’t know about the Heroku app that was set up on your laptop. When you cloned from GitHub, you only got the project files - none of the Heroku configuration came with it. I ran into this same issue when I switched computers last year. First, check if you’ve got the right Heroku CLI by running heroku --version. Don’t use the old gem version. That deprecation warning means you’re still using the outdated Ruby gem instead of the standalone CLI. Grab the current Heroku CLI from their official site and completely uninstall the gem. Once you’ve got the proper CLI installed, run heroku login to authenticate, then heroku apps to find your existing app. Finally, connect your local repo with heroku git:remote -a your-app-name - this links your desktop clone to the deployed app.

It seems like the Heroku remote is not set in your cloned repository from GitHub. When you first executed heroku create on your laptop, it established the remote automatically, which does not transfer when cloning. To fix this, manually add the Heroku remote using the command: git remote add heroku https://git.heroku.com/your-app-name.git, replacing your-app-name with the actual name of your app. You can find this name in your Heroku dashboard or by running heroku apps. Additionally, regarding the warning about the deprecated gem, it’s recommended to uninstall the old Heroku gem and install the latest Heroku CLI directly from the official site for improved reliability. After adding the remote, commands like heroku open --app your-app-name and git push heroku master should work as expected.