I’ve compiled a list of free add-ons available on Heroku, so I’ll introduce them.
The log management service Papertrail can be used for free up to 10 MB/day.
Papertrail configuration for Rails 5 is described in the following Heroku official documentation:
Add the following log output destination and format settings to config/environments/production.rb to complete the Papertrail configuration:
# config/environments/production.rb
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
heroku addons:create rollbar:free
After adding the Rollbar add-on, you’ll receive an email stating that you can complete the initial setup within 5 minutes from “Codebase Integrations”, so proceed with the configuration.
You can set up Deploy Hooks for free, which notify a specific URL when your app deployment to Heroku is complete. While this isn’t an add-on, it’s worth setting up.
If you have any “recommended Heroku add-ons,” please let me know.
That’s all from the Gemba.