Project

General

Profile

« Previous | Next » 

Revision ce12585e

Added by Ivan Necas about 11 years ago

  • ID ce12585ee584563f99cdc8fbc3ce1f1ae663495f

fixes #2492 Fallback to assets pipeline if a precompiled asset is missed in production

That's the case when an engine (foreman plugin) with it's own assets is added to
Foreman later in production.

this patch ensures that while not precomplied, it does not fail in
production.

View differences:

config/environments/production.rb
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Fallback to assets pipeline if a precompiled asset is missed:
# that's the case when an engine with it's own assets is added to Foreman later in production.
config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true

Also available in: Unified diff