Sunday 8 October 2017

Must Have Ruby Gems and setups

Production Environment
For database/codebase backup
gem backup - Easy full stack backup operations on UNIX-like systems
For Log file backup
Log Rotate - Keep your log files in check as time goes on and make sure they don’t fill up your server’s disk space (log rotate)
For Exception tracking and logging
gem rollbar - Exception tracking and logging from Ruby to Rollbar
Rack middleware for blocking & throttling abusive requests
gem rack-attack - Rack::Attack is a rack middleware to protect your web app from bad clients. It allows safelistingblocklistingthrottling, and trackingbased on arbitrary properties of the request.
Development Environment
For debugger
gem pry - An IRB alternative and runtime developer console
For N+1 queries
gem bullet - help to kill N+1 queries and unused eager loading
For soft delete
gem Paranoia - When your app is using Paranoia, calling destroy on an ActiveRecord object doesn't actually destroy the database record, but just hides it.
For security vulnerability
gem brakeman - Brakeman is an open source static analysis tool which checks Ruby on Rails applications for security vulnerabilities.
List of things to be cared before going live
  • Tests passing?
  • SSL Certificates
  • Check it through webpagetest.org for problematic load times
  • Set up any workers and autoscalers
Listed few and I’m planning to add more when I come across with useful gems.
Readers please comment with the gem list, which you feel like must have.

No comments:

Post a Comment