intridea/grape — Issue #108: Conventional way to structure configuration / booting?
Author: jjb
Created: 2011-12-29 21:44:14+00:00
State: open

Howdy. I mentioned this to @dblock after the ny ruby meetup a couple weeks ago -- is there a suggested / conventional way to set up a grape app so that it loads config for environments, bundler/gems, etc.?

As it is now i have things like this in my model files in /lib:

```ruby
require File.expand_path("../../config/environments/#{ENV['RACK_ENV']}.rb", __FILE__)
```

I can do this in a DRYer way but before I do I wanted to check if I was missing out on any conventions or tools that were already out there. Like maybe everyone is already borrowing this stuff from Sinatra? (I've never used Sinatra on a project so I'm not familiar with what's done there.)

Thanks!
John