-
Notifications
You must be signed in to change notification settings - Fork 0
Add Sentry integration #25
base: develop
Are you sure you want to change the base?
Conversation
Deploy preview for postpost-storybook ready! Built with commit f96b27c |
|
||
Vue.config.productionTip = false; | ||
|
||
Sentry.init({ | ||
dsn: process.env.SENTRY_DSN, | ||
environment: process.env.SENTRY_ENVIRONMENT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я бы всё таки вынес environment в .env.development
и .env.production
, чтобы случайно не придумать чего-то лишнего
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не очень понял о чем ты конкретно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SENTRY_ENVIRONMENT
не меняется от комьютера к компьютеру, поэтому его можно вынести в
.env.production
и .env.development
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
либо можно вообще использовать здесь process.env.NODE_ENV
, как тебе такое?
Если уже настраивал автосборку с учётом сентри — то обрати внимание, я создал два проекта в сентри, один для фронта, другой для бекенда |
@b0g3r пинг 😘 |
@@ -25,7 +25,7 @@ before_deploy: | |||
- echo $REGISTRY_PASS | docker login -u "$REGISTRY_USER" --password-stdin | |||
- export IMAGE_TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "dev"; fi` | |||
- export IMAGE_NAME="piterpy/postpost-frontend" | |||
- docker build -t $IMAGE_NAME:$IMAGE_TAG . | |||
- docker build -e SENTRY_DSN=$SENTRY_DSN -e SENTRY_ENVIRONMENT=develop -t $IMAGE_NAME:$IMAGE_TAG . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а почему в билде develop? 🤔
Closes #24