3 ms·
One non-obvious landmine with the heroku console, it attaches to a running web process. One day I had a typo in one of my console commands: Post = Post.count
by tomhallett 14y ago
One non-obvious landmine with the heroku console, it attaches to a running web process. One day I had a typo in one of my console commands:
Post = Post.count
# instead of "post = Post.count"
Which re-assigned the Post class to a number. Then we started getting production airbrake errors where the Post class was now a FixNum, /facepalm.
It was an easy fix, just restart all of the servers, but I was very surprised to say the least.
Note: I believe this was with the Bamboo stack. I'm not sure if this is still true with the Cedar stack.