Are you sure it's deleted? All file starting with a dot is hidden in *nix systems.
May 18, 2021
6
Level 2
.env file deleted when uploading in envoyer
Hi all
I user forge to maintain my server and envoyer to upload my laravel code to it. So when I upload my new code I commit my code and pull it to github and then upload to the server with envoyer. When I do this it always deletes my env, which I then past in again in forge environment site. How can I avoid this. Sure the .env file is in gitignore.
Thank you very much for your answer.
Best regards Simon
Level 2
The solution was to add the .env file not in forge. I added the .env file now in envoyer->servers->manage environment and it works fine
Please or to participate in this conversation.