Cleaning the Snap project source directory (removing dist) makes the following complaint:
A web handler threw an exception. Details:
GHC error: can't find a package database at dist/package.conf.inplace
So if I clean the source directory it stops working? Does this only happens if I compile with development flag?
This brings me to the question of snap application deployment. What do we actually rsync to the server and what are the run-time dependencies? I, of coourse, dont want to install the whole haskell platform on the deployment server. All I need on the server is the project executable and the static files like *.tpl, *.css, etc. Is this correct?
I can see two ways to deploy the application: rsync the executable and its dependencies or create a binary distribution tarball and shift it to the server. What is the common practice?
What files exactly do I need to include in the binary tarball or rsync script to satisfy all the run-time dependencies?
Thanks