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

rossnp's avatar
Level 11

Artisan Migrate on Envoyer

I'm new to Git deployments and have recently looked at Envoyer. All is working fine, however I just have a couple of questions regarding the process:

  1. Should I run NPM production locally, or should this be added as a task to Envoyer?
  2. Should the migrate command be added as a task to Envoyer, or is it common to SSH in to the server and then run this? The latter seems to defeat the object of zero downtime though!

Thanks :)

0 likes
1 reply
ejdelmonico's avatar
Level 53

@rossnp Personally, I run --production before committing and merging to master for deployment. If a new project, I usually ssh in to the server and run php artisan migrate and then look at the .env file to make sure Envoyer or Forge wrote correctly to the file. Also, if you use Ottomatik, that would be a good time to perform the quick setup for DB backups.

2 likes

Please or to participate in this conversation.