Laravel recipe not taking dotenv into account #4081
Unanswered
aladei-dean-lucassen
asked this question in
Bugs
Replies: 1 comment 1 reply
-
Looks like a bug. can you make pr with a fix? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Deployer Version
v7.5.12
Target OS
MacOS 15.4.1
Which PHP version are you using?
PHP 8.3
Content of deploy.php or deploy.yaml
I was digging through the common recipe and found that the dotenv path can be set.
In my host setup i have added this rule:
->set('dotenv', '{{deploy_path}}/Shared/_env/_default/.env');
Within the Laravel recipe there is the migrate task that explicitly tests the following:
test('[ -s {{release_or_current_path}}/.env ]')
So my deployment always fails because Deployer thinks the .env is not present.
Steps to reproduce
Place .env in a different directory and set the dotenv accordingly. Run deployment of Laravel application.
Beta Was this translation helpful? Give feedback.
All reactions