rondo_form icon indicating copy to clipboard operation
rondo_form copied to clipboard

rondo form in production

Open czepesch opened this issue 1 year ago • 1 comments

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:

Request URL: https://pm.23.88.117.56.sslip.io/assets/nested_rondo_controller
Status Code:
404 Not Found

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:

import NestedRondoController from "./nested_rondo_controller"
application.register("nested-rondo", NestedRondoController)

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:

import NestedRondoController from "./nested_rondo_controller"
application.register("nested-rondo", NestedRondoController)

since this already loading all the controllers:

import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
eagerLoadControllersFrom("controllers", application)

czepesch avatar Jan 21 '24 21:01 czepesch