spree / deface

Rails plugin that allows you to customize ERB views in a Rails application without editing the underlying view.
MIT License
520 stars 127 forks source link

precompile not applying app/overrides/* when running precompile with RAILS_ENV=production #151

Closed ping0xFF closed 9 years ago

ping0xFF commented 9 years ago

The overrides I created in app/overrides/ are not applied to the compiled_views if I specify the production environment in RAILS_ENV when running rake task for precompile, such as:

RAILS_ENV=production bundle exec rake deface:precompile
johnwook commented 9 years ago

I think your production.rb file might include this.

config.deface.enabled = false

In that case, deface will not work. You have to precompile deface resources in other environments(i.e. development, not production) then commit(and/or push) your precompiled assets.