Change serve URL
-
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.
-
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.
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
-
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
-
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
-
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.
-
@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
-
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 thedevServer:{}
section and under addhost: 'testdomain.com'
for example:devServer: { host: 'myapp.test' }
-
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
-
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 …