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

Add git_sha and release_version to .env on deploy #1124

Merged
merged 1 commit into from
Dec 7, 2019

Conversation

swalkinshaw
Copy link
Member

This will provide GIT_SHA and RELEASE_VERSION env variables. They can be useful for many purposes including application/error monitoring software.

This will provide `GIT_SHA` and `RELEASE_VERSION` env variables. They
can be useful for many purposes including application/error monitoring
software.
@swalkinshaw swalkinshaw merged commit a8e5471 into master Dec 7, 2019
@swalkinshaw swalkinshaw deleted the add-release-info-to-dot-env branch December 7, 2019 22:39
@tjedrak
Copy link

tjedrak commented Jun 29, 2020

Hi @swalkinshaw
I tried to set Sentry and use RELEASE_VERSION & GIT_SHA from .env but there are no variables there and I have Trellis 1.4.0.
Screenshot 2020-06-29 at 15 27 27

Whenever I try to deploy local I never manage to get these two vars.

@swalkinshaw
Copy link
Member Author

deploy local

What does this mean exactly? Usually deploying is for remote servers only. You wouldn't get these env vars in Vagrant if that's the question.

@tjedrak
Copy link

tjedrak commented Jun 30, 2020

Sorry, by deploying locally I meant vagrant up --provision. My goal was to test Sentry (send event) on local env. I used your gist but couldn't manage to do it; now I understand why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants