release_path does not exist on sentry:deploy #4252
Replies: 2 comments
|
Hi there, i guess the main problem is that sentry recipe is getting https://github.com/deployphp/deployer/blob/master/contrib/sentry.php#L214 |
|
Your diagnosis is right. This is not caused by the host configuration. In Deployer 8,
namespace Deployer;
set('sentry', [
'sentry_server' => 'https://sentry.selfhosted.cz',
'organization' => 'myorg',
'projects' => ['myproject'],
'token' => '...',
'environment' => 'production',
'version' => static fn (array $config): string =>
(string) (input()->getOption('revision')
?: trim(run('cat {{current_path}}/REVISION'))),
// Important: replacing only version still leaves the default commits
// closure trying to read release_path.
'commits' => [],
]);With that override, the standalone command you posted can use the supplied revision: dep deploy:sentry www1 --revision 4d7ebc3f127cb32169d90944905d27f1f4792e18 -vvvvIf commit association is needed in Sentry, you can populate I would not change only the |
Uh oh!
There was an error while loading. Please reload this page.
Deployer Version
v8.0.5
Target OS
Ubuntu 22
Which PHP version are you using?
PHP 8.5
Content of deploy.php or deploy.yaml
Steps to reproduce
dep deploy:sentry www1 --revision 4d7ebc3f127cb32169d90944905d27f1f4792e18 -vvvvAll reactions