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

cvhainb's avatar

Re-deploy, how can I handle it better?

Hello,

I use Laravel Mix to deploy my app then for some reason, I want to change something for my vue components and I must re-run "npm run production" again.

When use this command, my CPU is 100% and it takes about a few minutes. My questions is: How can I re-deploy my app better?

Thanks in advanced,

Chu

0 likes
2 replies
martinbean's avatar

@cvhainb What do you mean, you’re deploying with Mix? Mix just builds assets. How are you deploying with it?

If building takes a few minutes using 100% of your CPU then it sounds like your build is far too big.

Please or to participate in this conversation.