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

Rollbar environment #258

Merged
merged 2 commits into from
Apr 16, 2016
Merged

Rollbar environment #258

merged 2 commits into from
Apr 16, 2016

Conversation

gudmundur
Copy link
Member

See discussion here: #160.

@rwz what do you think?

@rwz
Copy link
Contributor

rwz commented Mar 8, 2016

👍

@@ -1,6 +1,7 @@
Rollbar.configure do |config|
config.enabled = ENV.has_key?('ROLLBAR_ACCESS_TOKEN')
config.access_token = ENV["ROLLBAR_ACCESS_TOKEN"]
config.environment = ENV['ROLLBAR_ENVIRONMENT']
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to add ROLLBAR_ENVIRONMENT to pliny/lib/template/.env.sample.erb?

ROLLBAR_ENVIRONMENT=development

Copy link
Member Author

Choose a reason for hiding this comment

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

I intentionally left this out, as ROLLBAR_ACCESS_TOKEN isn't specified there. Which causes it to default to being disabled.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it makes sense. Thanks for explanation! 👍

I wasn't sure how Rollbar gem acts when environment is nil, but seems like it handles everything pretty well 😄

@soulim
Copy link
Contributor

soulim commented Mar 18, 2016

I know it's just cosmetics, but would it make sense to use _ENV suffix instead of _ENVIRONMENT? Then variable name would be consistent with RACK_ENV, PLINY_ENV, and etc.

@gudmundur
Copy link
Member Author

@soulim Excellent point. I'll get it updated.

@gudmundur gudmundur merged commit 22aab15 into master Apr 16, 2016
@gudmundur gudmundur deleted the rollbar-environment branch April 16, 2016 07:59
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.

3 participants