I'm developing a Sinatra-based application and have seen some apps using an environment.rb file in the root of the app with code placed within a configure block. See examples at:
- https://github.com/zapnap/sinatra-template/blob/master/environment.rb; and
- https://github.com/andrewkolesnikov/sinatra-pro-template/blob/master/environment.rb.
I've tried searching on Google but cannot find an explanation of how the environment.rb file works with Sinatra and why you would put something in a configure block.
Anyone able to shed some light or direct me to where I should do some more research?