-
My team followed these instructions to install and configure the browser. Inside mount RailsEventStore::Browser => '/event_store' When we run our Rails app locally, the event store browser works as expected when browsing to http://localhost:3000/admin/event_store. When we attempt to load the browser inside our app when deployed to Heroku, we get a blank page with these errors: I went through the Heroku build log and did not see anything amiss. I'm hoping someone has run into this and knows how to fix it. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi Keith! Can you please tell what is your rails_event_store version and can you also paste bigger |
Beta Was this translation helpful? Give feedback.
-
We are currently using rails_event_store version 2.7.0. Here is a bigger namespace :admin do
constraints ->(request) { Auth::AdminService.new(session: request.session).admin? } do
mount Sidekiq::Web => '/sidekiq'
mount RailsEventStore::Browser => '/event_store'
end
end
|
Beta Was this translation helpful? Give feedback.
-
Hi @jkwuc89, We tried to reproduce your issue but we weren't able to. We used new rails app with RES 2.7.0 and following Rails.application.routes.draw do
namespace :admin do
constraints ->(request) { true } do
mount RailsEventStore::Browser => '/event_store'
end
end
end It would be much easier to investigate if provide minimal configuration app that reproduces this issue. |
Beta Was this translation helpful? Give feedback.
Closing the loop here - turns out the reason the rails event store browser was not working for us was because we were using nginx to proxy requests from a SPA javascript app back to our rails app. As soon as we retired that setup (by getting rid of the SPA 🎉 ), the rails event store browser worked just fine!