How to deploy a Vite / React application to GitHub pages

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2023
  • tags:
    GitHub Pages
    Vite
    React
    Deploying React Apps
    GitHub Pages Tutorial
    Hosting React Apps
    Deploying Vite Apps
    React Deployment
    GitHub Pages Deployment
    Vite Deployment
    Web Development Tutorial
    Frontend Development
    Hosting Websites on GitHub
    Website Deployment
    Step-by-Step Deployment
    Web Development Guide
    GitHub Hosting
    Web Hosting for Beginners
    GitHub Pages Setup
    GitHub Pages Walkthrough
    Free Hosting for Websites
    Static Website Deployment
    GitHub Pages Configuration
    Vite and React Deployment
    Easy Website Hosting
    How to Publish a React App
    Deploying Websites on GitHub Pages
    GitHub Pages Hosting Tutorial
    Web Development Tips
    GitHub Pages Best Practices
    Frontend Deployment
    Web App Deployment
    GitHub Pages Hosting
    GitHub Deployment Guide
    Free Hosting for React Apps
    GitHub Pages Tutorial for Beginners
    React Project Deployment
    GitHub Pages for Web Developers
    Website Publishing on GitHub
    GitHub Pages Configuration Steps
    Deploy React App on GitHub
    GitHub Pages Walkthrough
    Vite Build and Deploy
    GitHub Pages Deployment Process
    Deploying React on GitHub Pages
    GitHub Pages Hosting Setup
    Vite Project Deployment
    React GitHub Pages Guide
    Deploying Static Websites
    Easy Vite Deployment
    Vite Project to GitHub Pages
    Fast Deployment with Vite
    GitHub Pages for Code Hosting
    Simple GitHub Pages Deployment
    GitHub Pages Tips and Tricks
    Deploying a React Portfolio
    GitHub Pages Custom Domain
    GitHub Pages Troubleshooting
    Optimizing GitHub Pages Performance
    GitHub Pages vs. Other Hosting Options
    Web Development Hosting Solutions
    GitHub Pages Benefits
    Using Custom Domains with GitHub Pages
    SEO for GitHub Pages
    Web Hosting for Programmers
    Publishing React Apps Online
    Best Practices for GitHub Pages
    GitHub Pages Security
    Version Control for Web Hosting
    GitHub Pages vs. Netlify
    GitHub Pages vs. Vercel
    GitHub Pages vs. AWS
    GitHub Pages vs. Heroku
    GitHub Pages vs. Firebase
    GitHub Pages vs. GitLab Pages
  • เพลง

ความคิดเห็น • 79

  • @arthurkhallifa
    @arthurkhallifa 3 หลายเดือนก่อน +6

    I was getting crazy with some bugs with Pages, but doing the exact steps that you take, i could finally done it, THANKS SO MUCH

  • @jeff-creations
    @jeff-creations 6 วันที่ผ่านมา

    Excellent video. Straight to the point without a bunch of fluff. Worked great, thanks! Keep up the great work..........

  • @victormanuelramirez2502
    @victormanuelramirez2502 5 หลายเดือนก่อน +1

    Thanks! Didn't know you could run a deploy command from the terminal but now I do!

  • @XxxOwNeD89xxX
    @XxxOwNeD89xxX 6 หลายเดือนก่อน

    Thank man, was very simple and you went step by step , nicely done!

  • @richardvass3012
    @richardvass3012 8 หลายเดือนก่อน

    Thank you so much man, your video helped me! Have a nice day!

  • @singularity8027
    @singularity8027 6 หลายเดือนก่อน

    thank god dude. I have been struggling many days. You helped me a lot.

  • @blitzritter7867
    @blitzritter7867 8 หลายเดือนก่อน +1

    Bro I was able to deploy my project thanks to you, thank you very much

  • @kuoyulu6714
    @kuoyulu6714 4 หลายเดือนก่อน +1

    Thanks alot, this help me put up my first ever react website! 😃

  • @hrishikeshkalekinge5825
    @hrishikeshkalekinge5825 3 หลายเดือนก่อน

    Thank You brother, just what i was looking for

  • @tunaaa5997
    @tunaaa5997 6 หลายเดือนก่อน

    yoo after hourse of debugging and trying to deploy it finally works thankks

  • @lowmikow1099
    @lowmikow1099 2 หลายเดือนก่อน

    Thank you so much! Other videos either didn't work for me or included extra unnecessary steps!

  • @EdgarsGrazulis
    @EdgarsGrazulis 6 หลายเดือนก่อน

    Thanks, your video is very helpful! Had to watch it three times to finally deploy it haha mistake on my end though

  • @seeker3794
    @seeker3794 8 หลายเดือนก่อน

    Thank you very much... It finally works

  • @dudeyt1849
    @dudeyt1849 11 วันที่ผ่านมา

    Bruh i went crazy, finally i found ur video. tnx bruh🙂

  • @DeepakKumar-oz5ky
    @DeepakKumar-oz5ky 5 หลายเดือนก่อน

    Thanks sir first time i live my project

  • @mkj4443
    @mkj4443 2 หลายเดือนก่อน

    Yooo bro thank you and God bless you bro for your explanation, finally i could do it on 10th attemption

  • @ajaysan2765
    @ajaysan2765 9 หลายเดือนก่อน +1

    Thank you so much!

  • @kishankumar2272
    @kishankumar2272 24 วันที่ผ่านมา

    Really helpful video , thanks

  • @SipheleleZulu-jg4wr
    @SipheleleZulu-jg4wr 4 หลายเดือนก่อน

    Thank you so much.. Very clear

  • @EmenikeVictor-v3u
    @EmenikeVictor-v3u 4 วันที่ผ่านมา

    thanks, this was really helpful

  • @vamcreddy4112
    @vamcreddy4112 8 หลายเดือนก่อน +1

    Thanq bro. i was struggling so bad untill i found your video... It really helped me.!!

    • @worldnothing3721
      @worldnothing3721 5 หลายเดือนก่อน

      bro can we also deploy a tailwind app

  • @samsunggalaxyj7816
    @samsunggalaxyj7816 5 หลายเดือนก่อน

    Thanks. It worked.

  • @arpitsingh5312
    @arpitsingh5312 7 หลายเดือนก่อน +1

    Thank you there.

  • @sanjeevkumarvijayakumar
    @sanjeevkumarvijayakumar วันที่ผ่านมา

    THANK YOU SO SO MUCH

  • @techypanti
    @techypanti 5 หลายเดือนก่อน

    Thanks ! It works

  • @assia593
    @assia593 8 หลายเดือนก่อน

    great explanition

  • @abhishekchavan7526
    @abhishekchavan7526 5 หลายเดือนก่อน

    Thank You so much.

  • @debrajmondal8659
    @debrajmondal8659 6 หลายเดือนก่อน

    Very helpful video ❤❤

  • @user-hl7cd7tl7z
    @user-hl7cd7tl7z 9 วันที่ผ่านมา

    thx bro u are awesome😊

  • @breemudi
    @breemudi 9 หลายเดือนก่อน +1

    Thank you so so much

  • @joeblack8843
    @joeblack8843 8 หลายเดือนก่อน

    God Job👍

  • @ericksegura478
    @ericksegura478 8 หลายเดือนก่อน

    Gracias Dios te bendiga

  • @RalertXRalert
    @RalertXRalert 27 วันที่ผ่านมา

    so helpful
    thx bro

  • @Amr_Jalal
    @Amr_Jalal 6 หลายเดือนก่อน

    Thank you very very much

  • @HemantNavlani
    @HemantNavlani 3 หลายเดือนก่อน

    Thankyou so much brother

  • @Warciarz04
    @Warciarz04 4 หลายเดือนก่อน

    Thank You :)

  • @arabDevelopers312
    @arabDevelopers312 9 หลายเดือนก่อน

    thank you verrry much

  • @kevz_codes
    @kevz_codes 3 หลายเดือนก่อน

    Thanks a lot❤

  • @sonnymad8968
    @sonnymad8968 5 หลายเดือนก่อน

    Thanks a lot❤❤

  • @sawi494
    @sawi494 4 หลายเดือนก่อน

    thanks it helped🤩

  • @sathiyapriyan382
    @sathiyapriyan382 3 หลายเดือนก่อน

    Thanks a lot bro its very help ful but
    add script is some changes
    "scripts": {
    "deploy": "vite build && gh-pages -d dist",
    "predeploy": "rm -rf dist"
    }
    so kindly this use of it, then you went step by step its done!!

  • @SurajChoudhary_07
    @SurajChoudhary_07 9 หลายเดือนก่อน +1

    👍

  • @muradpetrosyan5128
    @muradpetrosyan5128 7 หลายเดือนก่อน

    Thanks man

  • @eduardovargas5848
    @eduardovargas5848 5 หลายเดือนก่อน

    thank you bro

  • @kir6925
    @kir6925 5 หลายเดือนก่อน

    tysmm!

  • @AikadevJS
    @AikadevJS 3 หลายเดือนก่อน

    thanks alot , +1 like for u

  • @kitesn1
    @kitesn1 7 หลายเดือนก่อน

    thanks bro ;))

  • @user-fn6ui9yb7j
    @user-fn6ui9yb7j 5 หลายเดือนก่อน

    tnx

  • @williamwassmann9349
    @williamwassmann9349 7 หลายเดือนก่อน

    hrrps is a mood.

  • @_acky
    @_acky 9 หลายเดือนก่อน +10

    what if my project used react router dom, it deploys but it throws an 404 server error

    • @RomanRoman-py8qf
      @RomanRoman-py8qf 3 หลายเดือนก่อน

      instead of use

    • @unsolvedmystery7408
      @unsolvedmystery7408 หลายเดือนก่อน

      ​@@RomanRoman-py8qf is it going to work on vite, because i wanted to deploy on vite

  • @user-rx7we1ib1b
    @user-rx7we1ib1b 6 หลายเดือนก่อน

    I have a question, if a have my react project inside a file on the repo, what should I change to do this process function?

  • @VRLilypad
    @VRLilypad 7 หลายเดือนก่อน

    This works until I try to set up a custom domain, how would you get this working with one?

  • @narendrawadhwa3506
    @narendrawadhwa3506 6 หลายเดือนก่อน

    do i need to gitignore the dist folder or not?

  • @crusaderpr7683
    @crusaderpr7683 4 หลายเดือนก่อน

    i got a error: failed to push some refs to does that mean i need to add a different link how do i fix this?

  • @dbuddheiejsjejebwiwhww
    @dbuddheiejsjejebwiwhww 5 หลายเดือนก่อน

    gh-pages is not eecognized as a command after deploying the project...

  • @wyarn
    @wyarn 5 หลายเดือนก่อน

    Thank you a lot deploying works very well. But as we defined base as project name in vite.config.js, now every time I start a live server (via: npm run dev) it redirects to localhost 5173/basename/ And this makes anchors etc inactive. How can I fix that?

    • @marinicamashinica
      @marinicamashinica 5 หลายเดือนก่อน

      don't run deployment, try "npm run start" or "vite preview"

  • @luiskingsleytolentino8291
    @luiskingsleytolentino8291 8 หลายเดือนก่อน

    I followed all the instructions but the images that came from public folder doesn't load on preview and deployed page, even tho the image is present on the dist folder

    • @idlefreak015
      @idlefreak015  6 หลายเดือนก่อน

      check your image sources

  • @kidslasher7rn783
    @kidslasher7rn783 6 หลายเดือนก่อน

    there's an error on mine when at the terminal typing git init, this appear "git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
    a path was included, verify that the path is correct and try again.
    At line:1 char:1"

    • @idlefreak015
      @idlefreak015  6 หลายเดือนก่อน

      you need to download git. you can download it from here:
      www.git-scm.com/downloads
      make sure to refresh your IDE after installation

  • @Carlover_guy
    @Carlover_guy 5 หลายเดือนก่อน +1

    It doesn’t work for me

  • @dipuometuel6806
    @dipuometuel6806 2 หลายเดือนก่อน

    index-7IEc_BOz.css:1

    Failed to load resource: the server responded with a status of 404 ()

  • @dnjosh10
    @dnjosh10 3 หลายเดือนก่อน

    I got a blank screen showing only the page titile

  • @sozako2243
    @sozako2243 2 หลายเดือนก่อน

    how to update it after i deployed it

  • @vjy78
    @vjy78 3 หลายเดือนก่อน

    my css is not loading after this

  • @prathamgupta6973
    @prathamgupta6973 3 หลายเดือนก่อน

    you have a black cat

  • @odeylinus6546
    @odeylinus6546 4 หลายเดือนก่อน

    My is not working

  • @chikara_2002
    @chikara_2002 5 หลายเดือนก่อน

    For me after I push the files into github and the link loads up and has the gh-pages option on the branch, when I click the link the site doesn't work. Any idea why?

    • @Titan-ey2wj
      @Titan-ey2wj 4 หลายเดือนก่อน

      maybe in the app comp u need to set a basename prop in the browserrouter. basename="tour repo name"

    • @chikara_2002
      @chikara_2002 4 หลายเดือนก่อน

      @@Titan-ey2wj do you mean the line base:”repo name”:?

  • @XploreHow
    @XploreHow 5 หลายเดือนก่อน

    Is it you "L"

  • @dpeedits
    @dpeedits 18 วันที่ผ่านมา

    bro sitting like L