Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using SENTRY_RELEASE environment variable #603

Merged
merged 4 commits into from Oct 27, 2022

Conversation

challgren
Copy link
Contributor

According to the PHP SDK docs a user can set the SENTRY_RELEASE environment variable. But with the Laravel specific package the release option is commented out and not using the default value.

@challgren
Copy link
Contributor Author

Related #51 and #167

@stayallive
Copy link
Collaborator

stayallive commented Oct 23, 2022

What exactly is not working with setting SENTRY_RELEASE in your .env? It works just fine without any changes.

Also this PR enables running a shell command by default which we are not doing for a few reasons (mainly security and performance).

Edit: I ofcourse forgot about config caching 😄 that is when it won't work.

Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cleptric I'm not sure we even want to keep the git command example in the config file, it's been around since forever and it's been kept but this might be better documented elsewhere because this is not the most efficient way to achieve this anyway.

config/sentry.php Outdated Show resolved Hide resolved
@cleptric cleptric merged commit e902c94 into getsentry:master Oct 27, 2022
@cleptric cleptric added this to the 3.0.1 milestone Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants