Skip to content

Commit

Permalink
Merge pull request #9 from mittwald/bugfix/set-httpuser
Browse files Browse the repository at this point in the history
Set http_user automatically
  • Loading branch information
martin-helmich authored Nov 3, 2023
2 parents f511860 + 2be8e74 commit 66dadfa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Recipes/AppRecipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ public static function discover(): void

// Override the default setting, which might try to respect the {{php_version}} setting.
currentHost()->set('bin/php', '/usr/bin/php');

// Set the http_user to the project user name, as Deployer might not be able
// to figure it out on its own.
currentHost()->set('http_user', $project->getShortId());
currentHost()->set('writable_mode', 'chmod');
}

public static function assertDocumentRoot(): void
Expand Down

0 comments on commit 66dadfa

Please sign in to comment.