ERR_CONNECTION_REFUSED with Django and Vue.js bundle files ERR_CONNECTION_REFUSED with Django and Vue.js bundle files django django

ERR_CONNECTION_REFUSED with Django and Vue.js bundle files


For production remove publicPath from your vue config file, I suppose you used that for development purposes, but in production you should only create the bundle and serve it to the user.

What's probably happening is that in your Docker setup you don't have the webpack dev server running (and you don't need it), thus you hit a connection refused error.