No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Change serve URL

    CLI
    8
    9
    4405
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • necmettin
      necmettin last edited by

      quasar dev serves on localhost:8080 automatically. I want to serve from a different URL but I couldn’t find any information on this in Quasar documentation or here. Could you direct me to relevant information?

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        You can’t simply change the URL of the dev server and it work properly. Named URL’s are controlled via DNS and obviously there is no name server involved in the dev server. The only way to make your dev server open to the public is to open your IP address to the public, which isn’t a smart thing to do. There are services you can get, which help support such an endeavor in a secure manner. They usually cost money though. Like this service.

        https://forwardhq.com/pricing

        Also, not sure what your intentions are, but the webpack server being used in Quasar is not a normal web server. It’s only meant for development purposes. Please don’t use it for production purposes.

        Scott

        1 Reply Last reply Reply Quote 0
        • s.molinari
          s.molinari last edited by

          If you are wanting to show clients your work, it’s best to invest in a small VM and upload your project there. You can get cheap VMs for 5 bucks a month, which will do the job nicely too.

          Scott

          1 Reply Last reply Reply Quote 0
          • matt
            matt last edited by

            Completely agree with what @s-molinari says: please do not use the dev server for production - it is not secure!

            Personally, I use Firebase Hosting as that is pretty good with these sorts of web apps and provides free SSL and a CDN. For dev / test purposes you’ll be within their free usage tier, so not cost at all 😄

            You could also look at Google App Engine, which can work on a free tier but requires a little more configuration.

            As your app grows you will need to look into ‘proper’ hosting, which will involve money. There are all sorts of approaches here, but the important thing is that you use a reliable (secure) web server to serve the compiled files, not the dev server.

            —Matt

            1 Reply Last reply Reply Quote 0
            • J
              JCharante last edited by JCharante

              I love deploying docker with hyper.sh thanks to their per second billing, and they cost about the same as digital ocean.

              I haven’t deployed a quasar app with docker yet, but I plan to. It’s about $3/month to host http://s1.jcharante.com/ (Yes, I should setup https). It’s $1/month for the public ipv4, $1.03/month for a container with 64 MB of ram (at least there’s free networking), and almost $1/month for the storage. Obviously you’d probably want to use a load balancer with something spinning up more containers to handle dynamic loads.

              There’s a variety of stacks to serve your site with. I personally like Flask + gunicorn (WSGI server) + cloudflare for free dns & caching.

              1 Reply Last reply Reply Quote 0
              • M
                matthijsmali last edited by

                @necmettin recently I’ve worked with a simple tool called Ngrok. Which you can download here: https://ngrok.com/ . Just follow the instructions on the website and you should be able to expose your localhost to a generated url (or a name you choose yourself, see https://ngrok.com/docs#subdomain). You can send that url to your clients, or whoever you want.

                Have fun gathering feedback and impressing your clients 😃

                1 Reply Last reply Reply Quote 0
                • S
                  steveleeroberts last edited by

                  Just incase anyone stumbles upon this from Google, you can set the host parameter in the quasar.conf.js file in the root of your Quasar project. Find the devServer:{} section and under add host: 'testdomain.com' for example:

                  devServer: {
                    host: 'myapp.test'
                  }
                  
                  1 Reply Last reply Reply Quote 0
                  • B
                    Barney last edited by

                    yes, I’m also looking for something like this, but like

                    mydomain.test/quasar-app

                    for testing purposes. I am trying to integrate the quasar app into a more complex system

                    1 Reply Last reply Reply Quote 0
                    • G
                      generator last edited by

                      Do any of you get a ERR_NAME_NOT_RESOLVED error when running an Android dev build after changing the host parameter? It’s working fine in my browser and on iOS …

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post