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

Ashraam's avatar
Level 41

Deploy on multiple server: question about .env file

Hi, I just started to use a envoyer account and I've got this little problem I don't know how to handle.

I will deploy my site on multiple server (a load balancer will redirect the requests), when I deploy my code via Envoyer it syncs the .env file to the servers (using the manage environment button on envoyer), it's nice because almost all the keys should be the same on every server.

But how can I do if I want a specific value per server e.g: APP_SERVER=XXXX should be different between server 1 and 2.

Is there a solution ?

Thanks

0 likes
1 reply
bobbybouwmann's avatar

I'm not sure if you can! You can ask the support of Envoyer if this is possible. The other solution is managing the .env per server, but this way you can't sync it anymore to other servers.

Please or to participate in this conversation.