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

brtbrt's avatar

Where to keep .env for production environment?

Where do you guys keep your .env file for your production environment? Do you call it production.env and FTP it over to your production environment?

0 likes
3 replies
Sinnbeck's avatar

I just call it .env and set it up using ssh

1 like
Lara_Love's avatar

name .env They don't change it until I saw it. Do not change the location of .env and its name so that the project system does not encounter problems.

Please or to participate in this conversation.