# Script/server and irbrc

**URL:** <https://www.ruby-forum.com/t/script-server-and-irbrc/122986>\
**Category:** Rails\
**Created:** [December 13, 2007, 7:53am UTC](https://www.ruby-forum.com/t/script-server-and-irbrc/122986 "2007-12-13T07:53:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [December 13, 2007, 7:53am UTC](https://www.ruby-forum.com/t/script-server-and-irbrc/122986/1 "2007-12-13T07:53:19Z")

</div>

What’s the reason that script/server loads your .irbrc for every page  
request? It seems dangerous to me for a couple of reasons, one is that  
it might make your development environment drastically different than  
your production environment (especially if you use GuessMethod or any  
other method\_missing/const\_missing hacks in irb). And it can fill your  
server terminal window with tons of unrelated-to-your-app error  
messages about undefined methods on nil if you do something like  
configure an irb prompt (with IRB.conf[:PROMPT]).

I’ve resorted to wrapping my entire irbrc in unless $0 == ‘script/  
server’ … end, but that seems like an inelegant solution.

So, why does it do it?

Thanks,  
Chris
