Open czepesch opened 10 months ago
I don't use VPS for deployment, it worked well when I tried to deploy on Flyio.
Do you have any error when running asset:precompile?
Maybe you can try renaming the stimulus controller and file names, I named nested_rondo
just for convention.
Hello! I deploy my application via dokku (docker) to my own Hetzner VPS and have:
ActionController::RoutingError (No route matches [GET] "/assets/controllers/nested_rondo_controller")
browser console:I already have few Stimulus controllers in the application and they are all working in the production, except rondo controller.
What additional steps should I take to make it work?
I already did asset:precompile, :clobber, :clean and such stuff, but no luck
Rails 7, importmaps, ruby "3.2.2" javascript/cotnroller/index.js:
Should I more specifically set a path somewhere to this controller? Thanks in advance!
UPDATE: Not sure if it is a correct approach or I found a real issue. I just commented out these lines in index.js and controller works fine in the production:
since this already loading all the controllers: