Deploy Vite app on Github pages using Github Actions

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • Deploy your Vite app like Vue , React or ... on Github pages using Github Actions
    github.com/ben... → benixal.github...
    github.com/ben... → benixal.github...
    00:00:10 create an app (Vue)
    00:00:54 deploy on github.io
    00:08:15 deploy on root domain

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

  • @dai180293
    @dai180293 ปีที่แล้ว +3

    Keep up the good work! Just incase anyone was wondering, if your branch is master not main then you need to also change that in the workflow ( line 7 ) if you copied the workflow from vite 👍

  • @gorangharib2427
    @gorangharib2427 ปีที่แล้ว

    *Thanks man I just learned from your video how to deploy an vite app on github pages! Thank you so much*

    • @benixal
      @benixal  ปีที่แล้ว

      Glad it helped!

  • @Uddeshya-dev
    @Uddeshya-dev ปีที่แล้ว

    thanks man i find the best turtorial on the internet

    • @benixal
      @benixal  ปีที่แล้ว

      Thank you so much! I'm glad you found the tutorial helpful.

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

    This video saved me. Very thank u

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

      Glad it helped

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

    Thank you so much; you're a lifesaver!

  • @edoris9021
    @edoris9021 ปีที่แล้ว

    IT WORKED 🎉🎉!!!
    Thank you so much, afrer losing my mind these last few days ive finally fkund the solution!!!

    • @benixal
      @benixal  ปีที่แล้ว

      You're welcome! 🎉 I'm glad my video was able to provide a solution for you!

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

    Thank you so much! It's really helpful!

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

      You're welcome! Glad it was helpful!

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

    Thanks a lot. You teach to the point..

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

    Thank you so much. This helped me a lot

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

      Glad it helped!

  • @טלעמית-מ9כ
    @טלעמית-מ9כ 5 หลายเดือนก่อน

    Thenks! this is great

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

    is this work when we use axios and fetch an API??

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

      Yes, it should work, but remember to check CORS
      en.wikipedia.org/wiki/Cross-origin_resource_sharing

  • @HaykVoskanyan-p5d
    @HaykVoskanyan-p5d 5 หลายเดือนก่อน

    Thank you very much bro👌👌👌👌

  • @portalgamestv4417
    @portalgamestv4417 ปีที่แล้ว

    Thank you! very helpful

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

    Very useful thank you!

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

      You're welcome! Glad it was helpful!

  • @BuhuuRecords
    @BuhuuRecords ปีที่แล้ว +1

    Do you have idea maybe why i don't have nothing in my workflow while i did everything like in this tutorial?

    • @benixal
      @benixal  ปีที่แล้ว

      If you don't have anything in your workflow, it's possible that you forgot to include the ".yml" extension when creating the deploy.yml file. Make sure the file is named "deploy.yml" and contains the necessary configuration for your deployment. Let me know if you have any other questions.

    • @BuhuuRecords
      @BuhuuRecords ปีที่แล้ว

      @@benixal I remembered the extension, the only thing I have been able to do is "deploy static content to pages" but it is not ideal....

    • @benixal
      @benixal  ปีที่แล้ว

      Another possible cause for the issue you're facing is forgetting to run "npm install" before deploying your application. This can result in an error message such as "Dependencies lock file is not found," which will cause the operation to halt.

    • @BuhuuRecords
      @BuhuuRecords ปีที่แล้ว

      @@benixal I read somewhere that the main base url should be '/repo' and currently according to the documentation I have '/repo/' but I don't know if this could be the cause of the error

    • @benixal
      @benixal  ปีที่แล้ว

      Please refer to the 03:23 in the video where I explain the base URL configuration. Additionally, you can check the following link for the contents of the vite.config.js file in your repository: github.com/benixal/myapp/blob/main/vite.config.js (which is for: benixal.github.io/myapp/) This file should provide insight into the base URL configuration and help determine if it could be the cause of the error you're experiencing.

  • @tulanunjiangpradit6913
    @tulanunjiangpradit6913 ปีที่แล้ว

    Thank you very much, your clip is very helpful

    • @benixal
      @benixal  ปีที่แล้ว

      Thank you! I'm glad to hear that the video was helpful to you.

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

    Thank you so much, it's save my lifeeee

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

      Glad it helped! 🙌

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

    Thank you very much

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

      You are welcome

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

    Life-saver!

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

      Happy to help! 🚀

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

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

    • @benixal
      @benixal  11 หลายเดือนก่อน +1

      You're welcome Ahmed!
      just add these lines (after the `run: npm run build`) to your deploy.yml file:
      - name: fix 404
      run: cp ./dist/index.html ./dist/404.html
      Example: github.com/benixal/my-vue-app/blob/main/.github/workflows/deploy.yml
      Demo:
      benixal.github.io/my-vue-app/
      benixal.github.io/my-vue-app/foods
      benixal.github.io/my-vue-app/profile

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

      @@benixal it works, thanks a bunch🌹🌹🌹

  • @eliasjunior7430
    @eliasjunior7430 ปีที่แล้ว

    Thanks for help Bro! Have someone limit for number of pages?

    • @benixal
      @benixal  ปีที่แล้ว

      Thanks for watching! Regarding your question, could you please clarify what you mean by 'limit for the number of pages'?

    • @eliasjunior7430
      @eliasjunior7430 ปีที่แล้ว

      @@benixal Can I have multiple pages for each of my projects?

    • @benixal
      @benixal  ปีที่แล้ว

      Yes, you can have multiple pages for your projects on GitHub Pages. It supports both single-page applications (SPAs) and multi-page applications (MPAs). So, depending on your project's requirements, you can deploy either a single page with client-side routing (SPA) or a traditional multi-page website (MPA)

    • @coding-in
      @coding-in 7 หลายเดือนก่อน

      Can use nuxt?

  • @useless_comment
    @useless_comment ปีที่แล้ว

    I have deployed but it is showing the read me file as hosted file

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

    Thanks man ❤

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

      You're welcome! 🚀

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

    helpful video

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

      Glad it helped

  • @zayedumer4028
    @zayedumer4028 ปีที่แล้ว

    You are the goat

    • @benixal
      @benixal  ปีที่แล้ว

      Thank you, I appreciate that! 🙏

  • @vanshikaagarwal6502
    @vanshikaagarwal6502 ปีที่แล้ว

    Thanks a lot!!!

    • @benixal
      @benixal  ปีที่แล้ว

      You're welcome! I'm glad the video was helpful for you.

  • @emongtindero
    @emongtindero ปีที่แล้ว

    thanks

    • @benixal
      @benixal  ปีที่แล้ว

      You're welcome!

  • @ahmadg3822
    @ahmadg3822 ปีที่แล้ว

    its giving empty page

    • @benixal
      @benixal  ปีที่แล้ว

      Check the console logs

  • @HSGG_
    @HSGG_ ปีที่แล้ว

    10wpm lol

    • @benixal
      @benixal  ปีที่แล้ว +1

      Watch it at 2x speed! 😄

  • @mcryt_malayalam_minecraft
    @mcryt_malayalam_minecraft ปีที่แล้ว +1

    Run npm run build
    > nodejs-chat-frontend@0.0.0 build
    > vite build
    sh: 1: vite: Permission denied
    Error: Process completed with exit code 126.

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

      got the same problem, did you manage to solve it?

  • @jasonc5947
    @jasonc5947 ปีที่แล้ว

    Promo_SM 😅