How to store Sentry token #3858
Unanswered
kouinkouin
asked this question in
Help needed
Replies: 2 comments 1 reply
-
I think in the .env file is the best way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, I tried that too: import:
...
- contrib/sentry.php
- deploy_secrets.php
config:
...
sentry:
organization: xxx-xxxxxx
projects:
- xxxxxxx-xxxxx
git_version_command: "git describe --tags"
#< deploy_secrets.php
token: "{{secret_sentry_token}}"
#> deploy_secrets.php
after:
...
deploy: deploy:sentry deploy_secrets.php, which is not versioned: <?php
namespace Deployer;
set('secret_sentry_token', 'sntryu_000000000000000000000000000000000000000000000000000000000000000'); But I receive a:
I guess the inclusion pf the token variable is wrong, but I don't know why 🤔 |
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.
-
Hello,
I just added contrib/sentry.php and that works fine, thanks!
Now, I want to commit that, but where to store the token (token must not be commited)?
I tried that, but deployer does not agree:
deploy.yaml (versionned)
deploy_secrets.yaml (git-ignored)
Result:
Thanks for your ideas!
Beta Was this translation helpful? Give feedback.
All reactions