Closed malteneuss closed 1 year ago
There's now a very convenient Nix "Haskell-flake" setup that makes it quite easy to package a Haskell project (although only cabal is supported) as a Nix package, which then can be used with "Nix dockerTools" much more conveniently.
Since everyone would probably like to host/deploy his/her Yesod project, how about adding some info on how to deploy Yesod, e.g. how to build a docker image out of it to make it easy to deploy. That's not trivial with non-haskell dependencies, especially on NixOS,which is popular with Haskellers. We could add some documentation to the Yesod homepage or (my preference) add a multi-stage docker Dockerfile that takes care of building and packing an image. Something along the lines of https://chekkan.com/haskell-yesod-web-app-in-docker/ :
Of course it would need to generate variations for the different databases. I would be willing to help with that.