ReactJs Tutorial | How to Deploy A React App To A Shared Hosting (CPanel) in Less Than 4 Mins

Sdílet
Vložit
  • čas přidán 14. 06. 2021
  • #React #ReactJS #JavaScript #100daysofcode #webhosting
    How to Deploy A React App To A Web Hosting (CPanel) -
    New Version with Explanations - • How to Deploy A React ...
    For deploying a react app on a shared hosting you need to create a production build. Production build is a pack of all your react code and its dependencies. in most shared hosting we put our site/app inside a public_html directory so if we hit www.yourdomain.com it serves the code from public_html directory. Follow along with this short video to get your react project up and running in less than 4 minutes.
    - Run React App Build command: npm run build
    - Remember to zip the build folder in order to successfully upload the project to any hosting platform.
    - Congratulations, your is now up and running.
    Learn HTML By Building Real Projects - Beginners - • Modern HTML & CSS3 Tut...
    Learn CSS By Building Real Projects - Projects: • How to Create a Profes...
    Learn ReactJS - czcams.com/play/PLS.html...
    Follow and Reach me at:
    Website:
    Github: github.com/mkasulecoder
    Instagram: / elitebytecode
    Twitter: / elitebytecode
    Dev Community: dev.to/casulemarc
  • Věda a technologie

Komentáře • 134

  • @samiRediAmaniTekeshAlazar

    thank you so much

  • @elitebytecode
    @elitebytecode  Před 2 lety

    How to Deploy A React App To A Web Hosting (CPanel) -
    New Version with Explanations - czcams.com/video/Rm-FVCGoqo0/video.html

  • @michael2826
    @michael2826 Před rokem

    Thankyou man. I knew it was easy but I didn't find anyone who made it easy like you did!

    • @elitebytecode
      @elitebytecode  Před rokem

      Thank you, Michael. I'm glad I was able to help!

  • @TheSoulCrisis
    @TheSoulCrisis Před 2 lety

    Great video man, appreciate it! Finally digging into the world of React and expressive JS frameworks, needed to launch a project in it and thinking of doing my website in it so this was needed. :)

    • @elitebytecode
      @elitebytecode  Před 2 lety +1

      Hi Soul, glad the video was helpful. All the best in your Reactjs journey, Share with me your project once it's up. I'd love to see it.

  • @lel0uchfr199
    @lel0uchfr199 Před rokem

    Thanks to you me and some friends have got our website online, we were strugling.
    Thank you again, continue like this!!!!

    • @elitebytecode
      @elitebytecode  Před rokem +1

      glad the video was straightforward and helped you show your site to the rest of the world

  • @elitebytecode
    @elitebytecode  Před 2 lety +1

    🚨I redesigned the McDonald's online ordering website in my newly released CSS Crash course. Check it out here - czcams.com/video/ZOs9IJ8TdnE/video.html

  • @johnderoy2257
    @johnderoy2257 Před 2 lety +1

    Spot on, this was so helpful. I watched the explained version too. Thank you for answering my concern.

  • @oscargalvez7
    @oscargalvez7 Před 2 lety +1

    Amazing video, it's just what I needed, straight to the point! 🔥🔥🔥🔥🔥🔥

    • @elitebytecode
      @elitebytecode  Před 2 lety

      glad that was helpful. thank you for you support

  • @chandrakethans5835
    @chandrakethans5835 Před měsícem

    Saved my day thank you so much!

  • @DanielaBarrientos
    @DanielaBarrientos Před 2 lety

    So well explained and concise!! This is a true gem! TY!

  • @magalashakirah5600
    @magalashakirah5600 Před 2 lety

    Great job!!!

  • @RezHimself
    @RezHimself Před 2 lety +1

    Duuuuude i love you man , i've been searching for solution for days and now you made my day ♥️🙏

    • @elitebytecode
      @elitebytecode  Před 2 lety

      I'm so glad this video was helpful to you. 😍

  • @edsaid2032
    @edsaid2032 Před rokem

    Exactly what I was looking for, perfectly explained in less than minutes. Thank you

  • @ruthlessati35
    @ruthlessati35 Před 11 měsíci +1

    You are amazing thank you so much it helped me to deploy on hostinger liked and subscribed!

    • @elitebytecode
      @elitebytecode  Před 10 měsíci

      Thank you for the feedback. Glad the step by step helped out easy the process. Happy coding!

  • @kelvinmwangi2717
    @kelvinmwangi2717 Před rokem +2

    This video literally saved my day, thank you very much

    • @elitebytecode
      @elitebytecode  Před rokem

      Glad it was helpful, now go ahead and show off your brilliant project to the world! 😃

  • @omarsharif4804
    @omarsharif4804 Před 8 měsíci +1

    Excellent! Thank you very much; it was very helpful.

  • @sebjanavlashi5524
    @sebjanavlashi5524 Před rokem

    Very very helpful. Thank you!

  • @Josh-Englishz
    @Josh-Englishz Před rokem

    Many Many thanks bro... u've cleared my mind..

  • @KhalidAnejjar
    @KhalidAnejjar Před rokem

    thank you ma man. you are a life saver

  • @donisvideos8907
    @donisvideos8907 Před rokem +1

    Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @user-bz8ch3tt5f
    @user-bz8ch3tt5f Před 8 měsíci +1

    thank yoouu

  • @rasel_sharif
    @rasel_sharif Před 9 měsíci +1

    Awsome. its work for me.

  • @ShibariumChain
    @ShibariumChain Před rokem +1

    You are a beauty!

    • @elitebytecode
      @elitebytecode  Před rokem

      Thank you! Glad to hear that this video was helpful

  • @Cdswjp
    @Cdswjp Před 2 lety

    excellent

  • @Yeaaimrich94
    @Yeaaimrich94 Před rokem

    Thank you!

  • @snowman74617
    @snowman74617 Před rokem +2

    Thanks bro ❤

  • @jaideepsingh11
    @jaideepsingh11 Před 16 dny +1

    thankyou 😇

  • @segunadelanwa1632
    @segunadelanwa1632 Před 2 lety

    Thanks Man

  • @noodledealer7447
    @noodledealer7447 Před rokem +1

    Thank you👍

    • @elitebytecode
      @elitebytecode  Před rokem

      You’re welcome Noodledealer! By the way that’s a nice name 😃🍝

  • @jazq3
    @jazq3 Před 10 měsíci +1

    Thanks for the video, it really helped me. I was trying to use Vite and the build didn't run at all, it just returned a 404 error. But using the React's create-react-app tool and uploading that build worked as expected.

    • @elitebytecode
      @elitebytecode  Před 10 měsíci

      Glad you resolved this. Please share your project if you don’t mind so I can take a look. I love seeing other people projects .
      Happy coding

    • @matheusdamiao7902
      @matheusdamiao7902 Před 7 měsíci

      Did you have problem with routes? I'm trying to set up with vite here too

    • @giovanni.ferrari
      @giovanni.ferrari Před 6 měsíci

      @@matheusdamiao7902 hey man I had the same issue and I solved it checking vite.config.js:
      export default defineConfig({
      base: '/react_app/dist/', // Configura la ruta base de tu aplicación
      plugins: [react()],
      });

  • @stephenpeters4393
    @stephenpeters4393 Před 6 měsíci +1

    Very precise information.
    I want to ask, if you added a new react component for instance then, would have to build the project all over and upload once again?

    • @elitebytecode
      @elitebytecode  Před 6 měsíci

      Yes, you have to rebuild the project that way all the files needed are recompiled together before to upload to the host

    • @stephenpeters4393
      @stephenpeters4393 Před 6 měsíci

      @@elitebytecode Thanks. Okay, I see it now

  • @jahmiahezron3383
    @jahmiahezron3383 Před 10 měsíci +1

    Thank you, thank you thank you.....

  • @horizon_uz
    @horizon_uz Před 10 měsíci +1

    thank you very much

  • @mdcapitals
    @mdcapitals Před rokem +1

    Thanks a lot

  • @cjfranca2004
    @cjfranca2004 Před 2 lety +1

    Congratis for job. Very easy,

  • @thesilentcitadel
    @thesilentcitadel Před 2 lety +2

    Thanks for this video. My shared hosting has cpanel and I have followed your steps here carefully, but it seems that when I browse to the page, it simply displays the text of the page and does not seem to run. Is there a specific configuration you need to do before the steps in this video on the shared hosting? What are the pre-requisites before you expect this can work?

    • @elitebytecode
      @elitebytecode  Před 2 lety +1

      Hi Sorich, I am yet to re-upload another video explaining the same issue. Hope it will be more helpful.

    • @elitebytecode
      @elitebytecode  Před 2 lety

      HI Sorich, would you mind sharing a screenshot of the error you are getting.

    • @elitebytecode
      @elitebytecode  Před 2 lety +1

      Here is a video to kick start you with the basics before hosting the app: czcams.com/video/i3aUvAXAQY0/video.html

    • @elitebytecode
      @elitebytecode  Před 2 lety

      Hi @Sorich, I think you would need to name your home page index.html. search engines look for this file to display its contents. Hope this helps.

  • @muazabboud
    @muazabboud Před 7 měsíci +1

    If I changed the code on the local, how to deploy the changes, without build locally and upload the build files. Are there any way to run the build on the server terminal ?

    • @elitebytecode
      @elitebytecode  Před 7 měsíci

      Hey Muaza, you can run npm run build in the terminal to recreate the new updates then do this same process again to upload the build files to the Cpanel.
      Hope that helps.

  • @johnmahugu3527
    @johnmahugu3527 Před 8 dny

    Hello Uganda :D

  • @francis81
    @francis81 Před 8 měsíci

    Thanks for the helps! Im also wondering what if i have the script needed to be run ?

  • @cristiansfetcu2099
    @cristiansfetcu2099 Před 2 lety +1

    nice video! what's the name of the program you use to manage your clipboard? thanks

    • @elitebytecode
      @elitebytecode  Před 2 lety

      I use Clippy - here is the URL link to install it. clipy-app.com/

  • @iUniverse
    @iUniverse Před 2 lety +1

    Hi. I wonder if this is applicable to full stack react. I mean, if I have a full stack react (frontend and backend) projects can I deploy on it?

    • @elitebytecode
      @elitebytecode  Před 2 lety

      Hi Moctar, Here is a resource that could be helpful to you. Please let me know if this answers your question. czcams.com/video/Z_D4w6HmT8k/video.html

  • @gillesashley9314
    @gillesashley9314 Před 6 měsíci

    Hello Sir, let's assume I have the project on github, how do I pull it directly from github to the cPanel and also configure it to auto fetch from github anytime I push from my local computer?

    • @elitebytecode
      @elitebytecode  Před 6 měsíci

      If the host allows connecting to GitHub as a third party, then they would take you through the process but for the most case scenario, you would resort to using a service like FileZilla (FTP transfer) to directly push your rebuild updates to the host without the trouble of logging in.

  • @josiahmarsh9453
    @josiahmarsh9453 Před rokem +1

    Hello! Thank you for the tutorial! I followed it, but am having an issue: I built a react website for a family member's small business, and followed this tutorial, but even though I replaced the contents of public_html with the extracted build, when I go to the website it shows the old half filled out wordpress site they had as a placeholder, and I don't know why it won't update. Has anyone experienced this? Or does anyone know how to reset the hosting folders?

    • @elitebytecode
      @elitebytecode  Před rokem +1

      Sorry to hear that you have having the problem. You may need to make sure you are uploading the build files to the right root public_html. At times it’s probably a reset site cache that may fix the issue. Can you please reach out via Twitter @elitebytecode so we can look at the issue with screenshots?

    • @josiahmarsh9453
      @josiahmarsh9453 Před rokem

      @@elitebytecode Sure!

    • @josiahmarsh9453
      @josiahmarsh9453 Před rokem

      @@elitebytecode Thanks so much, I sent a dm!

  • @tousifrafat
    @tousifrafat Před 2 lety

    Thank you

  • @yogeshk7922
    @yogeshk7922 Před rokem

    thank you

  • @TutorialesJescorcia
    @TutorialesJescorcia Před 2 lety +1

    Thanks

    • @elitebytecode
      @elitebytecode  Před rokem

      Glad this was helpful. Thanks for the feedback

  • @helpinfo6556
    @helpinfo6556 Před 2 lety +1

    Except for homepage, All other pages reload problems. How to solve this???

    • @elitebytecode
      @elitebytecode  Před 2 lety

      there must be a broken URL path. Do you want to check for this in your nav menu?

  • @krishnamaurya2516
    @krishnamaurya2516 Před rokem +1

    When trying this method showing only white blank page with react favicon.. how to fixed this issue.

    • @elitebytecode
      @elitebytecode  Před rokem

      Hi Krishna, are you able to share some screenshots of what’s happening via Twitter @elitebytecode?

    • @elitebytecode
      @elitebytecode  Před rokem

      Or try watching this updates video with explanations- How to Deploy A React App To A Shared Web Hosting (CPanel) - Explained
      czcams.com/video/Rm-FVCGoqo0/video.html

  • @gnorpflorbsen8665
    @gnorpflorbsen8665 Před 3 měsíci

    i used vite, it made a dist not a build. are there any differences. also using react-router-dom.

  • @davon_news
    @davon_news Před 2 lety +1

    Idk why when i put my domain inside homepage appears me like a link insted of a string and then when i build it with npm run build , the homepage is just "/" , anyone can help me?

    • @elitebytecode
      @elitebytecode  Před 2 lety

      Hi Devie, yes it should appear as a link when you add it into your package.json. Quick question does the app display when you host the build zipped file in public.html? Please assist me in understanding your question better.

    • @davon_news
      @davon_news Před 2 lety

      ​@@elitebytecode I can't put my domain as a homepage inside the package.json because he reads it like a link and don't catch the value, just after i deploy it with npm run build , the root from homepage set as "/" , that's the reason why i guess my website don't appear to everybody but i can see it on the pc where i develop the website....

    • @davon_news
      @davon_news Před 2 lety

      @@elitebytecode Thanks bro, I solve the issue , it was happening because of redux dev extension hahahaha thanks.

    • @elitebytecode
      @elitebytecode  Před 2 lety +1

      @@davon_news I'm glad you were able to resolve the issue. 👏

  • @Quicknuggets
    @Quicknuggets Před 2 lety

    Does that works with database driven nextjs sites also??

    • @elitebytecode
      @elitebytecode  Před 2 lety +1

      Apparently, you will need to host your database or JSON files somewhere.

  • @bl5947
    @bl5947 Před rokem +1

    thxs

  • @bobsanders2145
    @bobsanders2145 Před 2 lety +1

    song?

    • @elitebytecode
      @elitebytecode  Před 2 lety

      hi bob, here are free resources to get free audio for your content. Goodluck: studio.czcams.com/channels/3cQi5gvNeiPiPXTrMhZJMg.htmlmusic

  • @danieltkach2330
    @danieltkach2330 Před 2 lety

    Would this work with an app created via vite?

    • @elitebytecode
      @elitebytecode  Před 2 lety

      hi daniel, Here is an article to assist in deploying a vite application. Goodluck vitejs.dev/guide/static-deploy.html

  • @saishreepapercraftandvlogs1170

    How to build the react code

    • @elitebytecode
      @elitebytecode  Před rokem +1

      Here is the full playlist from Beginner to Pro ReactJs - czcams.com/play/PLSRfCvCBQPT_qh0hPZJEyp-ACsUe1wfPG.html

  • @kacperkepinski4990
    @kacperkepinski4990 Před 6 měsíci +1

    where is env file?

    • @elitebytecode
      @elitebytecode  Před 6 měsíci

      For this tutorial, there was no .env file.

  • @gianlucabredice8652
    @gianlucabredice8652 Před rokem +1

    it doesn't work for me :(

    • @elitebytecode
      @elitebytecode  Před rokem +2

      Hello @gianlucabredice8652, could you share what errors you are getting? I look forward to hearing from you. Thanks!

  • @Ashishsingh-oo2ve
    @Ashishsingh-oo2ve Před rokem +1

    Imgs nhi a rahi

    • @elitebytecode
      @elitebytecode  Před rokem

      could you please paste the code snippet you used to fetch images?

  • @samuelserra632
    @samuelserra632 Před rokem +1

    salvou

  • @Ashishsingh-oo2ve
    @Ashishsingh-oo2ve Před rokem

    Not working

  • @davon_news
    @davon_news Před 2 lety +2

    somebody help :c

  • @LlewYellowAnt
    @LlewYellowAnt Před rokem +1

    Nice video, irritating music

    • @elitebytecode
      @elitebytecode  Před rokem

      Hello YellowAnt, thank you for your feedback. I’ll work on that!

    • @41ex
      @41ex Před rokem

      @@elitebytecode nice music, song name please