I have an Angular application that I’m attempting to deploy to gh-pages via angular-cli-ghpages. I’ve been struggling off and on with this project, in general. I can either get my application working locally in order to test functions or I can successfully deploy, but never both. The deployed page’s console provides 404 errors associated with access to the build files (.css, .js, etc.). Everything appears to be in place, even when I look at the gh-pages branch ‘root’ directory.
To this point, I’ve tried deleting the ‘dist’ directory, rebuilding using ng build --configuration production
, then redeploying the app using either ng deploy --repo=https://github.com/tyler-kunce/myFlix-Angular-client.git
or ngh --dir=dist/my-flix-angular-client
. I’ve even tried uninstalling and installing angular-cli-ghpages as well as trying uninstalling angular-cli-ghpages then deploying my app using git command lines. Nothing seems to be consistently successful and I’m at my (and ChatGPT’s, which I’ve been leveraging with a good chunk of the troubleshooting to-date) limits.
Hoping someone here can help. My Github repo is myFlix-Angular-client. My deployed app is text. Feel free to let me know if any other info would help as well.
Thanks in advance,
Tyler
Tyler Kunce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.