Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Deploying a haskell application (not a webapp) (Alan Buxton)
2. Re: Deploying a haskell application (not a webapp)
(Brandon Allbery)
3. Re: Deploying a haskell application (not a webapp)
(Michael Orlitzky)
----------------------------------------------------------------------
Message: 1
Date: Tue, 16 Dec 2014 13:47:42 -0000
From: "Alan Buxton" <[email protected]>
To: "'The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell'" <[email protected]>
Subject: Re: [Haskell-beginners] Deploying a haskell application (not
a webapp)
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
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:[email protected]] On Behalf Of
Ramakrishnan Muthukrishnan
Sent: 16 December 2014 08:13
To: [email protected]
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141216/768974d1/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 16 Dec 2014 09:18:41 -0500
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Deploying a haskell application (not
a webapp)
Message-ID:
<CAKFCL4Vn=zyetx2tvtlqsm1jhaex2_9li1cddqb2e_msf0x...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Tue, Dec 16, 2014 at 8:47 AM, Alan Buxton <[email protected]> wrote:
>
> 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.
open-vm-tools{,-desktop} doesn't work? I've been using it in Mint. (In
general, the "official" vmware tools don't keep up with open source OSes
very well.)
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141216/528bd24f/attachment-0001.html>
------------------------------
Message: 3
Date: Tue, 16 Dec 2014 10:24:07 -0500
From: Michael Orlitzky <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Deploying a haskell application (not
a webapp)
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 12/16/2014 08:47 AM, Alan Buxton wrote:
> 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.
If you list the data files in Cabal's "data-files" field, and you use
Cabal to build on the server, then you can ask Cabal where it put those
files at runtime:
https://www.haskell.org/cabal/users-guide/developing-packages.html#accessing-data-files-from-package-code
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 78, Issue 15
*****************************************