Skip to content

Instantly share code, notes, and snippets.

@olistik
Created January 21, 2014 11:53
Show Gist options
  • Save olistik/8538683 to your computer and use it in GitHub Desktop.
Save olistik/8538683 to your computer and use it in GitHub Desktop.
see the differences between the Rack stack used in your Rails environments
#!/bin/bash
diff -y --suppress-common-lines <(rake middleware | ruby -e "puts ARGF.read.gsub(/0x[a-z0-9]+/, 'OBJECT_ID')") <(RAILS_ENV=production rake middleware | ruby -e "puts ARGF.read.gsub(/0x[a-z0-9]+/, 'OBJECT_ID')")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment