A user reports an ActionController::RoutingError when trying to load official Discourse plugins in a development environment on Ubuntu, with errors indicating missing asset routes for various plugins. Another user, merefield, experiences a similar issue and investigates the cause. They determine that the problem stems from a non-standard development setup where Ember CLI runs in a separate container, sharing a volume with the Rails server. The key issue is that the plugins directory wasn’t accessible to the Ember CLI process, which was responsible for building the JavaScript assets. After adding the plugin mappings to both containers, merefield resolves the issue. The discussion highlights the importance of ensuring both the Rails and Ember CLI processes have access to the necessary plugin files in a shared volume setup.
I’m running 2.9.0.beta11 on Ubuntu (developer environment) and I get the following errors about these plugins. It works perfectly fine without them. What do I need to do to get these plugins working?
Yes. It’s a non-standard dev install though, I’m running ember-cli on a separate container, sharing a volume with the rails server (investigating if this is the problem)
Does the ember-cli process have access to the plugins directory?
What does your shared volume include? The whole Discourse directory? In particular, I’m thinking of public/assets and app/assets/javascripts/discourse/dist
Where are your HTTP requests going? Ember-cli’s proxy? Or straight to the Rails app? (either can work, but knowing which way round you’re doing it may help debug)