I' trying to deploy to Github Pages using angular-cli (1.0.0-beta.11-webpack.8)
It worked fine once (when it just asked me for my user and pass)
Now, on a different repo, it wants a token:
In order to deploy this project via GitHub Pages, we must first create a repository for it.
It's safer to use a token than to use a password so you will need to create one
Go to the following page and click "Generate new token".
https://github.com/settings/tokens
When I generate a token and enter my username it always gives me this error:
Failed to create GitHub repo. Error: 422 Unprocessable Entity
Anyone got a solution for this?
Log into Github and check under Repositories to see if it was created (https://github.com/settings/repositories). Follow the instructions in the Readme.md file then try to deploy again.
I had the same issue.
You encounter this problem if you already have a repo on your github account with the same name of your project you are trying to deploy. I got around this problem by first deleting my repo and then executing the deploy command: ng github-pages:deploy
I'm guessing this is because the angular-cli always tries to create the repo first and if it fails (because it already exists), then it does not progress.
This recreates your repo with an extra branch which contains the deployed app.
Related
I have worked on an organization whose entire account was deleted by mistake but was later restored. Now I am trying to deploy a project in this org with gh-pages. Everything works or seems fine like to commits and all, unless I try to deploy the project. When I run the command npm run deploy the feedback I get is "published". But when I go to github and look for the website it says Error 404.
I have looked into the deployment log and found
this
I have tried every possible way to deploy a project using gh-pages and I have followed its procedure carefully. I found nothing useful which can solve this issue.
Thankyou in advance.
This is my first time deploying an app to GitHub pages. I have an app in react which I want to host it in GitHub pages. I followed different tutorials (linked below) which almost introduce the same approach. everything is OK but at the end when I run npm run deploy, I receive this error : . I'm somehow new to GitHub and haven't set any config related to SSH key. Is it related? or any idea what the problem is?
tutorial I tutorial II
I tried to solve this issue by SSH. However, I get this error on "npm run deploy" and I'm stuck
I'm currently deploying a nextJS site to github pages but was getting an error upon running npm run deploy. I'm suspecting it is a git checkout error but not sure where to start investigating.
Here's a screenshot of the error:
Am I missing something?
Any help would be much appreciated.
This is fixed. I've used ZEIT Now to deploy my application instead. See:
https://nextjs.org/learn/basics/deploying-a-nextjs-app/deploying-to-zeit-now
Then, assigned my domain name to my ZEIT Now deployment. For my code to still be visible in Github, I've just pushed my NextJS site to the repo.
I have project combination of Laravel and ReactJS but i got problem deploying it to our server almost 2 weeks still don't know why i can't access it.
when i try to access the browser.
This site can’t be reached
Step that i do before I deploy the project.
NPM Install
npm run production
zip the files to my computer and paste to the server
No error found when i view the error.log in our server.
Why it happen when i type my link
Example.
www.thisisexamplewebsite.ca
The .ca domain turns to cauwsta
I hope someone could help me and to solved my problem.
I'm using the IBM Watson-Conversation example on how to connect to Facebook. But I can't get past copying the connector info to Github. I'm following the automated process but I keep getting the error below. Can't see any issues on Github, and the repository is empty. Any thoughts?
The integration could not be set up. Check the settings and try again.
Reason: An error occurred while cloning the git repository. Error details: Invalid repository URL. Unable to connect to: https://github.com/davidmackenziejtge/conversation-connector-1.git. Please go to GitHub to either delete or rename the empty repository before trying again.
Looks like you haven't given the automated process write access to your github repository. This would have been through a browser message asking for permission when you initiated the process.