How to Deploy Your Vite App to Github Pages

How to Deploy Your Vite App to Github Pages

LearnVue

3 года назад

63,574 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Vijay Cse
Vijay Cse - 17.11.2023 07:51

Sir addFolder in dist folder this folder media only datas how to config.js

Ответить
Armando Pineda
Armando Pineda - 12.11.2023 23:27

You're awesome!
Muchas gracias.

Ответить
kaung myat
kaung myat - 08.11.2023 09:52

thanks sir, it's help me alot

Ответить
Ahmed Allawi
Ahmed Allawi - 20.10.2023 23:01

Thank you very much, but there is still a problem, which is that when I am not on the home page and reload, a 404 error appears

Ответить
Tatsumii14
Tatsumii14 - 17.10.2023 04:47

does this method work with react also?

Ответить
Jan Horák
Jan Horák - 16.10.2023 16:05

I have a problem, that when i push to my main repo, the created dist folder is pushed also, as it was forcefully added. How do i prevent this?

Ответить
Yogesh Yadav
Yogesh Yadav - 07.10.2023 01:08

Thanks a lot , After numerous failed attempts , this video helped me to deploy my applications .

Ответить
Isythos
Isythos - 16.09.2023 19:51

So I have a question. Does this mean if I commit to the master branch in the future the dist folder will automatically be commited to the gh_pages branch separately?

Ответить
Pages Perfected
Pages Perfected - 13.09.2023 00:51

Very helpful vid Thanks

Ответить
naqieuddin azman
naqieuddin azman - 03.09.2023 07:01

Thank you very much !!! Finally I can deploy on GitHub pages after 2 days trying to solve this issue 😭😭

Ответить
yogyy
yogyy - 29.08.2023 13:34

big help, thanks.

Ответить
Molnár Csaba
Molnár Csaba - 22.08.2023 19:01

Man, you are a legend! I struggled to deploy my page on GitHub for two days, following numerous tutorials and forums, but only this method worked for me. Thank you !

Ответить
Eugenia Kapusta
Eugenia Kapusta - 17.08.2023 15:04

after git subtree push --prefix dist origin gh-pages, I have mistake: git: 'subtree' is not a git command. See 'git --help'.

Ответить
T. K.
T. K. - 05.08.2023 00:37

Thanks, Man, :) finally, it worked. you save my day.

Ответить
Aakash
Aakash - 03.08.2023 14:54

DUDE YOU ARE A GOD, i absolutely hate how confusing it is to update vite codes. thank you

Ответить
Rithik Guleria
Rithik Guleria - 31.07.2023 08:00

Tried everthing yesterday night but nothing worked thankyou so muchh for this❤️❤️

Ответить
Murat Karakaya
Murat Karakaya - 23.07.2023 15:29

I will live 2 hours longer







thanks to this chanell

Ответить
YengChien Wong
YengChien Wong - 08.07.2023 19:30

best

Ответить
The Bunsen Burner
The Bunsen Burner - 25.06.2023 03:19

Trying to get this to run on a custom domain is such a pain. Really wish there were better directions available online for this. :'(

Ответить
Joshbo5H
Joshbo5H - 22.06.2023 01:42

Got mine to work after matching my repo's capitalization in the config. Won't be doing that again lol.

Ответить
Isa
Isa - 10.06.2023 06:18

super helpful! thank you!

Ответить
Moisés do Nascimento
Moisés do Nascimento - 01.06.2023 23:37

excellent tutorial! Thanks!

Ответить
Elizabeth Kitty
Elizabeth Kitty - 31.05.2023 23:09

I'm getting this error for some reason..any insight?
Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"

Ответить
Oleg Bukovskiy
Oleg Bukovskiy - 24.05.2023 14:36

Дякую, мені це дуже допомогло :))

Ответить
SNGLRTY
SNGLRTY - 21.05.2023 15:03

help me pls, after visiting my site i have empty page and 0 errors ,wtf is this?

Ответить
Илья Складник
Илья Складник - 20.05.2023 19:21

Cool! Thank you!

Ответить
Sowmya Naik
Sowmya Naik - 15.05.2023 23:13

Can you create a video for organisation level repositories. This seems to be working perfectly fine for personal repo, but shows 404 error on org repo.

Ответить
vegas
vegas - 02.05.2023 10:07

Thank you)

Ответить
Ryan James
Ryan James - 28.04.2023 05:34

Thanks so much for this video. It really helped me solve the problem of pushing staged items to a separate branch. But now I'm experiencing a couple things. 1. my dist folder is not getting added to staged area anymore. 2. How do you push updates to the gh-pages subtree now? Thanks in advance for any help from you or anyone!

Ответить
Estefono Kaleidos
Estefono Kaleidos - 23.04.2023 08:18

Man, i love u!!!

Ответить
Sun Jin
Sun Jin - 13.04.2023 18:24

This is literally what i wanted thanks this was very helpful

Ответить
Turist_161 Turist_161
Turist_161 Turist_161 - 10.04.2023 17:31

Thank you. i had hard time to understand what i did wrong, your tutorial really help me out

Ответить
Giga
Giga - 03.04.2023 16:24

omg bruh I cant thank you enough

Ответить
Aryan Dev
Aryan Dev - 02.04.2023 14:21

You are god

Ответить
stratocaster1134
stratocaster1134 - 30.03.2023 07:16

This was a perfect video, thankyou! One question. How do I update the gh-pages when I have added more code to my project?

Ответить
kadircan yazıcı
kadircan yazıcı - 26.03.2023 13:15

I have a multi-page static website setup, but when i host it on GH Pages, the only page that actually gets pre-pended '/repo-name/' is index.html, when i click a link to another page, i get a 404 error because the links do not incluse the repository name on the path.

How do i fix this?

Ответить
vuchke
vuchke - 17.03.2023 01:34

1 like is not enough for this....
spent 1 hour googling, then came here and did it in 2 mins
hats off my good man

Ответить
Depres1on
Depres1on - 16.03.2023 05:21

wow, thank you so much! i have been struggling to make it work but finally i did it because of your video!

Ответить
Alex Colls
Alex Colls - 05.03.2023 21:02

Amazing video!

If it's a Vue3 ts project do I need to add a vue.config.js file?

Thank you!

Ответить
Nazar ko
Nazar ko - 27.02.2023 19:47

if search for a video like this I don't need to get explained what is gh-pages!!!!! Just show how

Ответить
Maria Onokhina
Maria Onokhina - 26.02.2023 21:55

Thank you so much for this tutorial!

Ответить
Denny Fedyna
Denny Fedyna - 26.02.2023 00:42

3 minutes ONLY enough to deploy the app, thank you!

Ответить
Kevin Carter
Kevin Carter - 21.02.2023 17:17

GOD BLESS YOU IN JESUS NAME!

Ответить
Random dude
Random dude - 13.02.2023 17:59

thanks man it was a huge help

Ответить
K Smith
K Smith - 11.02.2023 00:11

I'm not even using Vue in my Vite project but after an entire day of trying to get my pages site to work this was what finally did it. simple, clear explanation that doesn't omit necessary details but also doesn't waste time. you're a hero dude.

Ответить
Alexander Hlebnikov
Alexander Hlebnikov - 22.01.2023 23:10

Buddy you are a life saver thanks alot for this amazing step by step tutorial

Ответить
Phantom X
Phantom X - 20.01.2023 12:24

How can i update my gh-pages if i make changes to the main branch?

Ответить
Enol Igareta
Enol Igareta - 02.01.2023 18:58

Perfect! Thank you very much!

Ответить