[Haskell-beginners] Deploying a haskell application (not a webapp)

Alan Buxton alanbuxton at gmail.com
Sat Dec 13 17:33:54 UTC 2014


Hi thanks for the input so far.

 

See attached a zipfile of a simplified version of the app. It runs locally on my dev machine and I want to be able to run it on a separate server. I don’t want to share the app with anyone else.

 

If I do “cabal install” with this particular application then it creates an executable at ~/.cabal/bin/app1

 

If I copy that file onto the target server then I get the following output:

 

$ ./app1 fred

Hi fred

Time now is 2014-12-13 17:27:21.764048 UTC

app1: /home/alan/.cabal/share/app1-0.1.0.0/data/file1.txt: openFile: does not exist (No such file or directory)

 

So sort of works but in particular the file attachment piece doesn’t work. 

 

 

 

From: Beginners [mailto:beginners-bounces at haskell.org] On Behalf Of Kim-Ee Yeoh
Sent: 13 December 2014 16:53
To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell
Subject: Re: [Haskell-beginners] Deploying a haskell application (not a webapp)

 

 

On Sat, Dec 13, 2014 at 8:54 PM, Alan Buxton <alanbuxton at gmail.com> wrote:

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).

 

Looks like there are some assumptions probably based on familiarity with some other language + toolchain.

Of what is the haskell analogue you're looking for?




-- Kim-Ee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20141213/3d5bf1c3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app1.zip
Type: application/x-zip-compressed
Size: 372658 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20141213/3d5bf1c3/attachment-0001.bin>


More information about the Beginners mailing list