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

6acypman's avatar

Manage env with envoyer

I have a situation that I started to work on a project which is deployed with envoyer. And I need to change a variable in .env file. But unfortunately I don't have a key to manage environment in envoyer.

If I just ssh to the instance and change the variable, will it work? Does envoyer overwrite .env file with it's own information on the next deployment?

0 likes
3 replies
bobbybouwmann's avatar

That's the point of the key right, to keep everything save. If you have access to envoyer but not to the key you have another problem!

As far as I know you can change the .env on the server and it should work fine. Note that you might need to clear your config cache as well!

You can also copy over the .env from the server and generate a new key in envoyer with the new .env file ;)

1 like
6acypman's avatar

@bobbybouwmann Thank you.

Do you know what will happen if there is situation: Foo=1 in envoyer. And Foo=2 at instance after I changed it directly. And then I do a deployment, does envoyer overwrite back Foo=1 ?

bobbybouwmann's avatar

I don't think it overrides it for you. But to be sure you have to try it out ;)

Please or to participate in this conversation.