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

Kinger's avatar

How to work on deployed Laravel Vite app

Hi, probably a silly question, but I don't understand how a website that has already been deployed on the web can be worked on. My only known way is to run the npm run build after every change in Vue.js. Can it be done in the same way as it is locally?

Thank you

0 likes
3 replies
Snapey's avatar

Why would you ever work on a production server?

Build and test locally then deploy your site to the server.

Use a deploy script so that you can deploy at will, with no chance of forgetting a step

Kinger's avatar

@Snapey I have a separate subdomain where I can develop and I just rather work on a website that is on a real server or when I want to work on the same project with my colleague I can't do that locally

Snapey's avatar

@Kinger thats not the right strategy

You and your colleague should both be using a version control system (usually Git) to separate your work and then bring it together (merge) when you are ready. If you both change the same file then you will have a merge conflict which one of you will need to resolve. Then, you can publish your code to the server.

Both working on the same instance is not very professional.

Please or to participate in this conversation.