I would like to deploy my react app onto my personal website. I currently have it deployed onto to heroku and have that linked on my personal site. But I would like to eliminate heroku from the equation and have everything on my own site. Whenever I try to deploy it, I upload the build files into my file manager public_html. But when I try to open it, all I get is a blank page. I have my vanilla JS projects up just fine.
My question is how do I deploy my react app, through cpanel, onto my existing site.
I've read through some stack pages already and tried npm run build and posting the zip files as well as the normal files to my cpanel file manager. But it only gives me a blank page. When I open up dev tools for the blank page I can see that it is the html file I want but and it has the links to my build files but it's just not running them for some reason. I've tried changing the homepage destination as well.
I believe I'm just missing something really simple because I'm having a hard time finding any help on this one. I'm relatively new to react and deploying react apps so if someone could help me I would be very grateful.
I don't know if I am uploading the files to my file manager in cpanel wrong or if I'm doing something wrong with npm run build.
My git repo is here https://github.com/brandondorner/4-Day-Forecast-Weather-App
Thank you.
Aucun commentaire:
Enregistrer un commentaire