Skip to content

Commit b3daa94

Browse files
feat: don't crash app if agent error when start
1 parent 9e9dd47 commit b3daa94

File tree

1 file changed

+5
-1
lines changed
  • packages/forest_admin_rails/lib/forest_admin_rails

1 file changed

+5
-1
lines changed

packages/forest_admin_rails/lib/forest_admin_rails/engine.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ def load_configuration
4343
# force eager loading models
4444
Rails.application.eager_load!
4545

46-
ForestAdminRails::CreateAgent.setup!
46+
begin
47+
ForestAdminRails::CreateAgent.setup!
48+
rescue StandardError
49+
# Ignored
50+
end
4751

4852
sse = ForestAdminAgent::Services::SSECacheInvalidation
4953
sse.run if ForestAdminRails.config[:instant_cache_refresh]

0 commit comments

Comments
 (0)