How to Deploy React App to cPanel IN 1 MIN!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back guys today I'm going to be showing you how to deploy your react app to cpanel in under two minutes go to your package.json type in home page and type in the directory or sorry the web page that you want to direct the react app to then go down to your terminal npm install that's going to install the dependencies that you just defined then you want to run npm run build what that's going to do is create a folder called build and it's essentially going to be your react app in a very compressed small version once that's done go down to your project folder go into build and zip all those files doesn't matter what you name it that's just going to be put onto our cpanel and in order to do that you want to go down to cpanel file manager go to the directory public HTML and you want to hit upload and then just drag and drop that dot zip folder once it hits 100 you want to go back and just extract that dot zip folder into the public HTML directory and then you want to just get rid of that zip folder and then you want to add a new file called Dot htaccess and I'm going to leave down the contents of that in the description for you to copy and paste so right click it hit edit edit paste it hit save changes and once you go back by the way if you don't see.ht access just go up to settings and check that box show hidden files and now you're done your react app is deployed
Info
Channel: CJ Nour
Views: 5,517
Rating: undefined out of 5
Keywords: how to, how to deploy react app to cpanel, how to put react app to cpanel, how to react to cpanel, react to cpanel, quick, fast, 1 minute, tutorial, react, javascript, cpanel, upload
Id: W37sEGybTRU
Channel Id: undefined
Length: 1min 21sec (81 seconds)
Published: Thu Oct 06 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.