Git Product home page Git Product logo

Comments (7)

jevawin avatar jevawin commented on May 27, 2024 1

In case anyone else finds this from Google like I did, I had the same error but it was because I hadn't added my SSH key to Heroku and the git remote command in init.sh uses --ssh-git. I fixed it by:

Adding my SSH key: https://devcenter.heroku.com/articles/keys#adding-keys-to-heroku

Deleting my existing app (the one I'd created that ran into the error), deleting the Git repo and re-running from scratch (or you'll get errors when trying to checkout your branch).

You can delete the broken Heroku app with:

heroku apps:delete your-app-name

Then just delete the entire heroku-wp folder and follow the guide again. Hopefully this helps :-)

from heroku-wp.

xiangming avatar xiangming commented on May 27, 2024

@samkleeman1
Could you please tell me the solution? I'm getting the same error.

from heroku-wp.

samkleeman1 avatar samkleeman1 commented on May 27, 2024

I believe this issue is to do with this part of the init.sh file failing

cd .. && \ git checkout -b "$1" && \ bin/composer update --ignore-platform-reqs && \ git add composer.lock && \ git commit -m "Initial commit for '$1'" && \ git push heroku "$1:master"

I think I did git add . and then set what my default repository was first e.g. heroku git:remote -a falling-wind-1624 in the console and that fixed it

from heroku-wp.

xiangming avatar xiangming commented on May 27, 2024

@samkleeman1 Thanks, it's helpfull.

@xyu I think you should reopen this issue, there are some problem when Do the intial commit for this site in init.sh

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

@xiangming thanks for the ping; yeah going to reopen this and checkout what the issue is.

from heroku-wp.

learning-more avatar learning-more commented on May 27, 2024

When I run the command:
cd heroku-wp && bin/init.sh thieves4
The init script runs, and ends with the error:
`fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Deploy failed for 'thieves4'.
`

Based on what I read here:

"If you’re working out of another branch locally, you can either merge to master before pushing, or specify that you want to push your local branch to a remote master. To push a branch other than master, use this syntax (above)"

So, it seems we are not merging to master first. The init.sh is attempting to push my local branch to a master, but it fails as the remote named "heroku" is not configured correctly.
Perhaps the remote should be specified differently before the push command?

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

So in theory the heroku apps:create ... command should have added a heroku remote to your local git repo Heroku docs.

These errors seems to indicate that this sometimes fails however I have not been able to reproduce it yet. @learning-more do you still happen to have the full logs when you ran the init script?

from heroku-wp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.