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

jeroenvanrensen's avatar

`npm run prod` after `php artisan up`?

Hi everyone,

I wrote a simple deployment script, where the last steps are npm install, npm run production, and php artisan up.

Of all the steps in the script, npm run production takes the longest. Is it possible to run php artisan up before building the production? (So that all users use the dev build, temporarily)

Thank you! Jeroen

0 likes
8 replies
chaudigv's avatar
chaudigv
Best Answer
Level 16

Yes. You can run php artisan up before npm run prod.

Snapey's avatar

why not run npm run prod before you even take the old version down?

Snapey's avatar

does your deployment overwrite the previous install or create a parallel install and then flip symlinks?

Please or to participate in this conversation.