deployer
deployer copied to clipboard
Bugfix dotenv test in laravel.php
The test to check if .env file is present was not checking if the dotenv variable was set and always used the default. Added getter for dotenv variable.
@antonmedv as discussed in #4081 I created a pr for the bug in the laravel recipe for checking the .env file's presence.
I think we also need to change dotenv itself, so it works during deploy:
-set('dotenv', '{{current_path}}/.env');
+set('dotenv', '{{release_or_current_path}}/.env');
@antonmedv where should this be added? I cannot find any occurrence of the set('dotenv', '{{current_path}}/.env'); other than a comment on line 78 in the common recipe.
@antonmedv I'm happy to help but could you point me in the right direction? As stated in my previous comment I cannot find the line of code you shared besides a comment.
@antonmedv where should this be added? I cannot find any occurrence of the
set('dotenv', '{{current_path}}/.env');other than a comment on line 78 in the common recipe.
This code: https://deployer.org/docs/8.x/recipe/common#dotenv
@antonmedv just added the commit.