Skip to content

adds a rollbar to rails#27

Merged
Leenday merged 3 commits intodevelopfrom
feature/devops/rollbar
Jan 10, 2023
Merged

adds a rollbar to rails#27
Leenday merged 3 commits intodevelopfrom
feature/devops/rollbar

Conversation

@Leenday
Copy link
Copy Markdown
Owner

@Leenday Leenday commented Dec 28, 2022

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 28, 2022

Uffizzi Preview deployment-9783 was deleted.

Comment thread app/forms/session_form.rb Outdated
def user_valid?
if user.blank? || !user.authenticate(password)
errors.add(:email, "email or password doesn't match")
Rollbar.error("email or password doesn't match")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

роллбар не для логгирования валидаций

Comment thread config/initializers/rollbar.rb Outdated
# Without configuration, Rollbar is enabled in all environments.
# To disable in specific environments, set config.enabled=false.

config.access_token = Rails.application.credentials.dig(:rollbar, :access_token)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

давай лучше через переменные окружения (environment variables) сделаем

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

А где правильно хранить переменные окружения в проекте?
.env, насколько я понимаю, не подходит.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

реальные в github secrets, для разработки в композе файле фейковую строчку задать

@Leenday Leenday force-pushed the feature/devops/rollbar branch from ffaf29f to 29d454d Compare January 2, 2023 09:52
@Leenday Leenday merged commit 9f0f0ad into develop Jan 10, 2023
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