blahed/frank — Issue #68: Determining if in production mode in setup.rb
Author: manuelmeurer
Created: 2012-02-10 09:20:33+00:00
State: open

I am trying to set the Compass http_path to a CDN in production mode. Unfortunately `Frank::Settings.instance.production?` still returns false at this point since the setup.rb is parsed before the settings are set.
I tried to refactor it to set the settings before parsing setup.rb but ran into other problems on the way.
Now I am using `Frank::CLI.instance_variable_get('@options')[:production]` in setup.rb which feels like punching a puppy every time I deploy.
Is there a better way to do it?