Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Can eager load app in development with EAGER_LOAD=1

Christophe Bliard08ef97516bf0
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 49ef1e064f2..7b024ec4ee8 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -37,8 +37,8 @@ OpenProject::Application.configure do
# Automatically refresh translations with I18n middleware
config.middleware.use ::I18n::JS::Middleware
- # Do not eager load code on boot.
- config.eager_load = false
+ # Do not eager load code on boot by default.
+ config.eager_load = ENV['EAGER_LOAD'].present?
# Asynchronous file watcher
config.file_watcher = ActiveSupport::EventedFileUpdateChecker