How to deploy a Vite / React application to GitHub pages

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 94

  • @arthurkhallifa
    @arthurkhallifa 6 місяців тому +7

    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

  • @batbegins
    @batbegins 20 днів тому

    God bless you! I watched a lot of content like this, but this is really different and has finally helped me deploy my project.

  • @HarshPatel-lv2el
    @HarshPatel-lv2el 2 місяці тому +1

    thanks man spent too much time to resolve the errors and then finally by your video i finally got it. thanks a lot

  • @naraladayakarreddy7140
    @naraladayakarreddy7140 2 місяці тому

    Previously I watched so many videos but every time I am able deploy into live.Finally yours videos is usefull for me,Thank you so Much

  • @victormanuelramirez2502
    @victormanuelramirez2502 8 місяців тому +1

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

  • @Mare_Brat
    @Mare_Brat 10 днів тому

    Thanks buddy for this tutorial! Helped a lot!

  • @egeozel80
    @egeozel80 27 днів тому

    Thanks so much, same here with the struggle and lead to solution with you. Good job.

  • @kuoyulu6714
    @kuoyulu6714 7 місяців тому +1

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

  • @jeff-creations
    @jeff-creations 3 місяці тому

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

  • @dudeyt1849
    @dudeyt1849 3 місяці тому

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

  • @_acky
    @_acky Рік тому +12

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

    • @RomanRoman-py8qf
      @RomanRoman-py8qf 6 місяців тому

      instead of use

    • @unsolvedmystery7408
      @unsolvedmystery7408 4 місяці тому +1

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

  • @blitzritter7867
    @blitzritter7867 11 місяців тому +1

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

  • @lowmikow1099
    @lowmikow1099 5 місяців тому

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

  • @XxxOwNeD89xxX
    @XxxOwNeD89xxX 9 місяців тому

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

  • @vamcreddy4112
    @vamcreddy4112 11 місяців тому +1

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

  • @singularity8027
    @singularity8027 9 місяців тому

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

  • @EdgarsGrazulis
    @EdgarsGrazulis 9 місяців тому

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

  • @mkj4443
    @mkj4443 5 місяців тому

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

  • @hamka363
    @hamka363 Місяць тому +1

    Thanks you so much bro👌👌

  • @hrishikeshkalekinge5825
    @hrishikeshkalekinge5825 6 місяців тому

    Thank You brother, just what i was looking for

  • @richardvass3012
    @richardvass3012 11 місяців тому

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

  • @kishankumar2272
    @kishankumar2272 3 місяці тому

    Really helpful video , thanks

  • @tunaaa5997
    @tunaaa5997 9 місяців тому

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

  • @souravbannerjee7151
    @souravbannerjee7151 24 дні тому

    very very thanks sir

  • @DeepakKumar-oz5ky
    @DeepakKumar-oz5ky 8 місяців тому

    Thanks sir first time i live my project

  • @sathiyapriyan382
    @sathiyapriyan382 6 місяців тому

    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!!

  • @BekzatTulebaev
    @BekzatTulebaev 3 місяці тому

    thx bro u are awesome😊

  • @EmenikeVictor-v3u
    @EmenikeVictor-v3u 3 місяці тому

    thanks, this was really helpful

  • @amitasulin726
    @amitasulin726 Місяць тому

    nice it worked ty!

  • @seeker3794
    @seeker3794 11 місяців тому

    Thank you very much... It finally works

  • @SipheleleZulu-jg4wr
    @SipheleleZulu-jg4wr 7 місяців тому

    Thank you so much.. Very clear

  • @arpitsingh5312
    @arpitsingh5312 10 місяців тому +1

    Thank you there.

  • @BeBetterDev
    @BeBetterDev Місяць тому

    Thank you soo much 🥹✨😭

  • @ajaysan2765
    @ajaysan2765 Рік тому +1

    Thank you so much!

  • @sanjeevkumarvijayakumar
    @sanjeevkumarvijayakumar 3 місяці тому

    THANK YOU SO SO MUCH

  • @RustAlderson
    @RustAlderson 3 місяці тому

    so helpful
    thx bro

  • @joeblack8843
    @joeblack8843 11 місяців тому

    God Job👍

  • @debrajmondal8659
    @debrajmondal8659 9 місяців тому

    Very helpful video ❤❤

  • @TiarnanGuinee
    @TiarnanGuinee 2 місяці тому

    Legend

  • @0600adm
    @0600adm 2 місяці тому

    thank you

  • @samsunggalaxyj7816
    @samsunggalaxyj7816 8 місяців тому

    Thanks. It worked.

  • @techypanti
    @techypanti 8 місяців тому

    Thanks ! It works

  • @breemudi
    @breemudi Рік тому +1

    Thank you so so much

  • @abhishekchavan7526
    @abhishekchavan7526 8 місяців тому

    Thank You so much.

  • @HemantNavlani
    @HemantNavlani 6 місяців тому

    Thankyou so much brother

  • @Amr_Jalal
    @Amr_Jalal 9 місяців тому

    Thank you very very much

  • @assia593
    @assia593 Рік тому

    great explanition

  • @rajshukla2465
    @rajshukla2465 24 дні тому

    thanks :)

  • @AikadevJS
    @AikadevJS 6 місяців тому

    thanks alot , +1 like for u

  • @kevz_codes
    @kevz_codes 6 місяців тому

    Thanks a lot❤

  • @Warciarz04
    @Warciarz04 7 місяців тому

    Thank You :)

  • @abdulmalekakel8982
    @abdulmalekakel8982 Місяць тому

    GREAT MAN BUT I STILL HAD A PROBLEM WITHIN IMAGES , THEY ARE NOT SHOWIN IN THE WEBSITE

  • @sonnymad8968
    @sonnymad8968 8 місяців тому

    Thanks a lot❤❤

  • @arabDevelopers312
    @arabDevelopers312 Рік тому

    thank you verrry much

  • @JuanHincapie-m6s
    @JuanHincapie-m6s 9 місяців тому

    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?

  • @ericksegura478
    @ericksegura478 11 місяців тому

    Gracias Dios te bendiga

  • @williamwassmann9349
    @williamwassmann9349 10 місяців тому

    hrrps is a mood.

  • @eduardovargas5848
    @eduardovargas5848 8 місяців тому

    thank you bro

  • @sawi494
    @sawi494 7 місяців тому

    thanks it helped🤩

  • @SurajChoudhary_07
    @SurajChoudhary_07 Рік тому +1

    👍

  • @narendrawadhwa3506
    @narendrawadhwa3506 9 місяців тому

    do i need to gitignore the dist folder or not?

  • @wyarn
    @wyarn 8 місяців тому

    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 8 місяців тому

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

  • @muradpetrosyan5128
    @muradpetrosyan5128 10 місяців тому

    Thanks man

  • @thevaishndra
    @thevaishndra Місяць тому

    does this works for react router too?

  • @kitesn1
    @kitesn1 10 місяців тому

    thanks bro ;))

  • @VRLilypad
    @VRLilypad 10 місяців тому

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

  • @kir6925
    @kir6925 8 місяців тому

    tysmm!

  • @arashsharifi-s2v
    @arashsharifi-s2v 8 місяців тому

    tnx

  • @dbuddheiejsjejebwiwhww
    @dbuddheiejsjejebwiwhww 8 місяців тому

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

  • @kidslasher7rn783
    @kidslasher7rn783 9 місяців тому

    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  9 місяців тому

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

  • @crusaderpr7683
    @crusaderpr7683 7 місяців тому

    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?

  • @luiskingsleytolentino8291
    @luiskingsleytolentino8291 11 місяців тому

    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

  • @dipuometuel6806
    @dipuometuel6806 5 місяців тому

    index-7IEc_BOz.css:1

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

  • @dnjosh10
    @dnjosh10 6 місяців тому

    I got a blank screen showing only the page titile

  • @sozako2243
    @sozako2243 5 місяців тому

    how to update it after i deployed it

  • @Carlover_guy
    @Carlover_guy 8 місяців тому +1

    It doesn’t work for me

  • @vjy78
    @vjy78 6 місяців тому

    my css is not loading after this

  • @prathamgupta6973
    @prathamgupta6973 6 місяців тому

    you have a black cat

  • @odeylinus6546
    @odeylinus6546 7 місяців тому

    My is not working

  • @chikara_2002
    @chikara_2002 8 місяців тому

    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 8 місяців тому

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

    • @chikara_2002
      @chikara_2002 7 місяців тому

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

  • @XploreHow
    @XploreHow 8 місяців тому

    Is it you "L"

  • @dpeedits
    @dpeedits 3 місяці тому

    bro sitting like L