Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Amphitrites's avatar

Laravel Vue Production

I have a vue project that uses Laravel api. I ran the npm build command and installed it on my server.

http ://[::1]:5173/resources/css/app.css GET net::ERR_CONNECTION_REFUSED http ://[::1]:5173/@vite/client net GET::ERR_CONNECTION_REFUSED http ://[::1]:5173/resources/js/app.js GET net::ERR_CONNECTION_REFUSED

I'm getting these errors. This is my first experience with Vue. I've read the forums and documentation and I think I'm doing it right but it doesn't work.

In conclusion, what I want to understand is how to create my project by running it locally and how to run it on the server.

0 likes
1 reply
martinbean's avatar

@amphitrites Vite is still trying to use hot-reloading, so it sounds like you’ve committed and/or uploaded a public/hot file.

This file should not be in your repository, and should not be on your server, otherwise Laravel will try and use hot-reloading. If it is in your repository, you need to remove it, re-commit, and re-deploy:

git rm -f public/hot
git commit -m 'Remove hot file'
git push

Your compiled assets will then be used after running npm run build on your server, instead of Laravel trying to do hot-reloading.

Please or to participate in this conversation.