
Hiya It turned out that my issue was to do with the data files. When compiling locally, cabal puts the files in /home/alan/.cabal/share and the compiled application expects to find the files there. So when I deploy my binary I have to also put some files into /home/alan/.cabal/share which feels wrong. Alternatives to me seemed to be to set up cabal on my dev pc to install globally rather than user-based, but that also feels a bit wrong. Sandboxes looks like they might be useful but I've been having all kinds of problems with getting vmware tools installed on a sufficiently new version of Ubuntu to get a more up to cabal. So I guess the real question behind the question is .. how best to set up your dev environment when developing in Haskell so you don't end up with problems like this one where you have data files compiled into some obscure place. Alan From: Beginners [mailto:beginners-bounces@haskell.org] On Behalf Of Ramakrishnan Muthukrishnan Sent: 16 December 2014 08:13 To: beginners@haskell.org Subject: Re: [Haskell-beginners] Deploying a haskell application (not a webapp) On Sat, Dec 13, 2014, at 07:24 PM, Alan Buxton wrote: Hi I have created an application using cabal that now installs fine and runs fine on my dev machine. I now want to deploy this application onto a separate server. This is not a webapp. Try as I might, Google will not point me in the direction of how to do this, apart from loads of links to Keter which is not what I want (there is no nginx or any other web server involved). Any advice on the neatest way to do this? Hi, Can't you build a static binary and deploy it? (something like this -- http://stackoverflow.com/questions/5953199/create-a-static-haskell-linux-exe cutable) Ramakrishnan http://rkrishnan.org/