jalogut / magento2-deployer-plus

Tool based on deployer.org to perform zero downtime deployments of Magento 2 projects
GNU General Public License v3.0
200 stars 60 forks source link

How to add your production env.php in the artifact #48

Closed grll closed 4 years ago

grll commented 4 years ago

Hi I am trying to use your build artifacts deploy recipe.

1) Building step goes fine.

2) Sending and deploying:

How do you set or specify the production env.php that must be use on the production server ?

PauloPhagula commented 4 years ago

Deployer has the concept of shared_files, which is just a list of files that are to be shared between deployments. These shared files will exist in the shared "deploy path"/shared on your server. This formula lists app/etc/env.php as one of them.

So what you want to do is to go to your server and replace the blank "deploy path"/shared/app/etc/env.php file with yours.

The file that exists in "deploy path"/current/app/etc/env.php is a symlink to the file mentioned above

Upon each the deployment a symlink to the shared file is created.

grll commented 4 years ago

I see, thanks for the highlight I will dig into that

osrecio commented 4 years ago

Thanks @dareenzo :D

Closing this issue