Home > Mobile >  How to fix deployment showing only the content from before repository was renamed?
How to fix deployment showing only the content from before repository was renamed?

Time:12-07

I changed my repository name on GitHub. Now when I deploy the website, it only shows the content that was there before renaming the repo.

I did run "git remote set-url origin NEW_URL" and it gets pushed correctly. I can see the new changes in the remote repo. It just doesn't show up when I deploy. Running "git remote -v" also shows the new URL. Here's the repo https://github.com/Undisclosed64/Trackr

I couldn't find a single answer to this. Your help is much appreciated.

CodePudding user response:

The minified JavaScript files in your project still contain references to "BugTracker". For example: https://github.com/Undisclosed64/Trackr/blob/main/client/build/index.html contains "Sign in to BugTracker".

It seems that you deploy straight from the repo (without a server build) so I think you just need to rebuild your project, push build artifacts, and redeploy.

  • Related