mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Merge branch 'next-minor' into develop
This commit is contained in:
@@ -15,6 +15,11 @@ Rails.application.configure do
|
||||
config.eager_load = true
|
||||
config.eager_load_paths += %W[#{config.root}/lib]
|
||||
|
||||
# diaspora* does not use ActiveStroage. But eager loading then loads active_storage/blob.rb,
|
||||
# which then fails if there isn't a config/storage.yml
|
||||
# This can be removed if we ever want to use ActiveStorage and a storage.yml exists
|
||||
config.eager_load_namespaces.delete(ActiveStorage::Engine)
|
||||
|
||||
# Full error reports are disabled and caching is turned on.
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
@@ -16,3 +16,9 @@ Rails.application.config.assets.paths << Rails.root.join("node_modules")
|
||||
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
||||
|
||||
Rails.application.config.public_file_server.enabled = AppConfig.environment.assets.serve?
|
||||
|
||||
# assets:precompile can sometimes fail with a Segmentation fault.
|
||||
# Disabling export_concurrent is a workaround. See: https://github.com/sass/sassc-ruby/issues/207
|
||||
Rails.application.config.assets.configure do |env|
|
||||
env.export_concurrent = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user