I’m not very experienced with RACK, or much more than writing my rails app and making it go. I put in miniprofiler today in our rails project that I need to do some performance fixes on and then put it up into production. I also followed the instructions here http://samsaffron.com/archive/2012/07/12/miniprofiler-ruby-edition about putting in a before filter, and only turn on profiling if the user is in the appropriate admin groups. Traced thru the code and it works fine in dev.
In production however, its not turning on. I don’t know if thats because:
Anyone use this gem in heroku yet and have any feedback?
Cross posting this to StackOverflow too.
My guess is that this could be a storage issue, if for any reason haroku is load balancing across multiple vms stuff can get weird.
If that is the case you should try the RedisStore
Ok, that sort of worked (using Redis) but its pretty chaotic, probably due to Heroku’s environment. For example, I’ll hit the main page and not see anything, then go into a sub page and it will work. Then later, the main page starts working, or sometimes, it never does. Very strange, but totally understandable.
So let me ask a followup question: I have another environment I created called “devprod” which uses local dev server, but connects to production database. Since the main issues I’m having are long running queries in the production database (due to a lot of data) I’m thinking I’ll just do these performance investigations in devprod.
However, I can’t see pp=help when I run under that environment. Is there something different I need to do to make it work there?