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

gabrielbuzzi's avatar

Laravel Deploy

Hey guys, i got some doubt about deploy, i'm auto deploying with Buddy.Works, and i add some actions after deploy my code.

  • Update composer depences (For new composer)
  • Install NPM depences (For new npm dependences)
  • Compile gulp in production (For new scripts)
  • Laravel migration (For new migrations)

My doubt is: is a good approach to generate laravel keys (php artisan key:generate) and jwt auth keys (php artisan jwt:secret) every deploy?

The deploy only stands out when i push something to the master branch in github repository

0 likes
1 reply
martinbean's avatar
Level 80

@gabrielbuzzi Things like your APP_KEY should be stored as environment variables on the server(s) you’re deploying to.

1 like

Please or to participate in this conversation.