[Vuejs]-Path-problems with deploying vue CLI-app in hosting environment

1👍

I found the solution. Perhaps a good instruction for others, with the same problem. It’s a very weird topic, and the documentation for deploying to a hosted server is very inadequate in the web.

If you want to deploy e.g. to:

m.myapp2go.de/vueapp/

you have to set the vue CLI configuration in the vue ui as follows:

enter image description here

Then run

npm run build

and then copy the index.html to your root-folder on the server and your dist-folder to your dist-folder on server.

And, voilà, the test app is running perfect on the hosted server!

enter image description here

Leave a comment