Search code examples
yesod

What is the recommended way to deploy Yesod?


I am on a shared web server, and I have apache2 installed locally, so I can set it up any way I need. What is the most supported way to deploy a yesod application? I can set up my apache2 as a proxy to Warp. Would this be the best setup? Or should I just go with FastCGI?

I also would appreciate details on how to set up everything. I mean how to write a request handler, if I need one, what apache's VirtualHost should look like, etc, because I am new to yesod.


Solution

  • According to the Yesod Book, Warp with a reverse proxy is the recommended approach, but the various other deployment options are also described in great detail there.