-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Rack compatible apps other than Rails #20
Comments
Hey @svoop, that's a great question. Kuby was designed to work with Rails, but most if not all of the Rails functionality is encapsulated in the
|
This is certainly one of the situations where the predictability of Rails comes in handy. However, even with Rails, such assumptions may not apply e.g. when Faucet Pipeline is used instead of Sprockets or Webpacker. As for Hanami, it's a much more modular framework – you might use the Hanami model gem or assets gem, however, you're free to do things differently. Quickly skimming over the I'm sorry if this is a naïve view, I have to admit that my knowledge of Docker and Kubernetes is rudimentary as of now. Other folks may have more expedient ideas to share than me. |
@svoop right, these are all good points. There's no way I'm going to be able to anticipate all the different configurations out there in the wild, so it makes sense to provide ways to turn things on and off. I'm just not familiar enough with the Hanami and Sinatra communities to know what the defaults should even be, or how to architect the knobs and levers 😦 I think a feature like the static asset server wouldn't need to change too much, since I assume for Faucet, hanami-assets, etc there's a compile step that produces a set of static files just like there is for webpacker and the asset pipeline. The Kuby asset step during deploys just copies the static files from your Docker image into the asset server so nginx can deliver them. I think database access, webserver configuration, secrets, etc are going to be the most problematic features. |
Kuby is a very nice piece of work with support for different cloud providers – including the ability to add your own provider.
The other end, however, appears to be less flexible: According to the docs, «Kuby is designed to work with Rails 5.1 and up». It would be very cool if Kuby supported any Rack-compatible app (such as Hanami, Sinatra etc) as well, maybe using a modular approach similar to the provider end.
Is this in any way desirable and feasible?
The text was updated successfully, but these errors were encountered: