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

Trocamedo's avatar

Deploying vue/JS files to remote server

Hey, I am unfamiliar with deploying JS to my production server. Usually when I make a release I do so by replacing existing files on the server, scp | file | location. That is what I have been doing with my backend, blade, php files.

Since js is a little bit different, do I have to npm run anything or something on my server to make changes work when I replace my vue file that I have updated? Since I do 'npm run dev' to have changes appear in my dev enviroment. Replace main.js inside my public folder on the server perhaps?

0 likes
1 reply
NemoPS's avatar

I assume you are using mix, so uploading the compiled assets from your public/ folder should be enough (js and css, and anything additional you might have)

Please or to participate in this conversation.