I come to Hanami from a Rails developer and I see the Hanami’s architecture is perfectly matched for my next project, thanks for a great framework!
However, after getting started with Hanami, I met some issues which are important to me and they made me a bit less confident to use it as the framework for my next project.
Basically, I would like to have a system with:
abc.comas the landing page for the whole services
x.abc.comfor service x
y.abc.comfor service y
- All of them are normal web apps, not SPA
Issues I have met:
- I mounted apps as below (follow the guide in the section
Mounting On A Subdomainat https://guides.hanamirb.org/routing/overview/)
mount Web::Application, at: '/' mount X::Application, host: 'x'
It leads to an error which is also described here: https://github.com/hanami/hanami/issues/951
- Ignoring the issue with subdomains, I simply mount the apps as
mount Web::Application, at: '/' mount X::Application, at: '/x'
Although I already set the root in
apps/x/routes.rb and create controller, templates, etc. I still receive 404 error when visiting
It works just fine if I mount the Web::Application to ‘/mainweb’ (instead of ‘/’). Is this a bug or the expected behavior? (so I will need to do proxy in the web server layer. Personally, I don’t prefer this)
- I have not found any way to reference an asset in scss file (like
asset-pathin Rails asset pipeline) yet
I hope I have missed something or there are solutions for them so I can continue the interesting works with Hanami. Thank you!