Comments (7)
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.
@samkleeman1
Could you please tell me the solution? I'm getting the same error.
from heroku-wp.
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.
@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.
@xiangming thanks for the ping; yeah going to reopen this and checkout what the issue is.
from heroku-wp.
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.
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)
- How to install from private bitbucket ? HOT 1
- include_once() error messages HOT 2
- Auto redirect to HTTPS HOT 3
- Storing images in S3 failed HOT 1
- Composer wpackagist missing file error HOT 2
- Authy has been deprecated HOT 1
- Deploy button? HOT 1
- 502 Bad Gateway HOT 4
- Non-standard mysql port HOT 3
- Composer fails RuntimeException Could not delete HOT 1
- Custom plugins are missing after composer install HOT 1
- sh: 1: ./support/app_slug_compile.sh: Permission denied HOT 1
- Mu-plugins information appears on the head HOT 2
- Themes nor Plugins cannot be added HOT 5
- Error logs not showing HOT 3
- Error establishing a database connection HOT 6
- Error running heroku run wp core install HOT 1
- Getting errors after creation of functions.php
- Error running locally
- Failure running WordPress locally. Folder mount fails on Vagrant 2.1.4 (MacOS Big Sur)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-wp.