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

dyegonery's avatar

Envoyer are not creating .env file on server

I'm using the "Manage Environment" feature normally. I fill the key correclt, and then see the file content. of the file. The problem is, even after click in "Update in servers" (with the server checkbox checked), and envoyer show me the message that is syncing enviroment, the file is not created in the root directory. I also looked at the current folder and the .env is not created.

Anyone else experienced this same problem?

Regards!

0 likes
4 replies
dimsav's avatar

Had the same issue.

I defined the .env after a couple deploys and expected this to be applied in the current build. Maybe a notification that we need to rebuild for the file to appear would avoid the confusion.

Triggering a deploy manually after setting the .env file for the first time inserted the .env file symlink.

ejdelmonico's avatar

Envoyer creates the .env file in the site directory so there should be no changes when deploying a new version. In other words, the .env is not inside the current directory otherwise you would have to redo the file with every deploy.

2 likes

Please or to participate in this conversation.