I think this would be better with a command line flag taking precidence over and environment variable. Eg: 

```ruby
FLAPJACK_ENV = options.environment || ENV['FLAPJACK_ENV'] || 'production'
```