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

GodziLaravel's avatar

CI/CD : Laravel deployment

Hello,

I have a Laravel project and when I deploy it, I should run a list of commands :

  • sudo composer install
  • sudo php artisan migrate
  • ...

All these commands needs the sudo permission .(I don't know if it should be the case?)

I'm wondering If I need to start using CI/CD deployment, is it possible to keep sudo ?

Also for some commands like php artisan migrate there is a question :

**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 >

I'm wondering how the CI/CD manage this ?

Thanks

0 likes
2 replies

Please or to participate in this conversation.