Deploy Quasar into Static hosting site



  • Hi all !

    I want to know what is the best way to deploy quasar into a static web-hosting sites like netlify.

    I uses quasar 0.14

    Thanks



  • Which part of it is unclear to you?
    Because Quasar / JavaScript SPAs are just static files, you do not need a special setup. Maybe you could tweak caching a bit for images and fonts, but other then that the requirements are minimal, just a web server that answers to a request should suffice. :)
    If it’s about the actual deployment, there are many different strategies. I wrote a bit about different strategies in this answer: http://forum.quasar-framework.org/topic/618/deploy-and-upgrade-quasar-app/2

    I haven’t used netlify myself, but it seems like you just have to create a new project on netlify, enter the link to your git repo and then configure the settings.
    Choose the branch you want to use, as deploy folder you enter dist and as build command npm run build. Basically, that’s it. I have taken these from this blog post by netlify, which describes not exactly Vue.js applications, but it happens that the folder and commands are the same: https://www.netlify.com/blog/2016/10/27/a-step-by-step-guide-deploying-a-static-site-or-single-page-app/



  • @a47ae thank you for quick response appreciated. i got it


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.