Github-Pages deployement issue - reactjs

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.

Related

Next JS deployment on vercel constantly failing

My Next JS deployed site's vercel build is constantly failing.Here's the screenshot of the error.
I don't exactly know what's happening. Everything works fine locally.
After those steps in the screenshot.. it will continue and you are suppose to see similar to the following

Firebase Hosting deploy with Google Cloud Build throwing "No such file or directory" error

I built a simple ReactJs app and tried using Google Cloud Build to deploy it as soon as I push a new commit to the master branch on Github.
For that I added an "On push to master" trigger and followed every step from here to configure my Google Cloud and Local Project. In the end I created a cloudbuild.yaml file with the following content:
After a new commit and push the cloud build logs a correct npm install and npm run build, but the firebase stops at the following step.
I didn't understand which file/directory is missing, nor how to fix it. Could anyone help me a little?
Thanks in advance.
So after a whole day of work I found out the problem. Apparently when you generate the firebase image mentioned in the tutorial all its files need to use End of line LF, but in windows it sets all of them to CRLF. I solved the problem using the WSL terminal in windows.

Google Cloud Platform: Updating a project after deployment

I am using Google Cloud to deploy my application. I have followed the steps in the documentation for deploying. I deployed early on in my project and it was successful. I then decided to change some files and update some features in my app. For this i followed the documentation for updating a deployment. This update was successful. It had me create the deployment in my Deployment Manager and run the gcloud commands to commence update. When I redeployed with gcloud app deploy, it was successful.
I have since added a couple more lines of code and features in my application. I followed the same documentation for updating a deployment as I had the first time I made an update and it is no longer working for me.
Does anybody have any idea what would be the problem? Again, I was able to successfully deploy, and even update that deployment once by following Google Cloud docs. Now I am having no luck.
Have you been changing the version number? Go to:
https://console.cloud.google.com/appengine/versions?project=< your project name >&serviceId=default
And make sure the version you want is active. Also, you can try:
http://<VERSION>-dot-<SERVICE>-dot-<PROJECT_ID>.<REGION_ID>.r.appspot.com
Example:
https://20200813-dot-myapp.uc.r.appspot.com
if the version number was 20200813 and your appname is myapp and the region is uc

How to deploy perfectly Laravel Project with ReactJS to the server

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.

angular cli Failed to create GitHub repo. Error: 422 Unprocessable Entity

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.

Resources