[Haskell-beginners] Deploying a haskell application (not a webapp)
Corentin Dupont
corentin.dupont at gmail.com
Thu Dec 18 09:31:15 UTC 2014
I add a command line parameter to my programs to specify the location of
config files:
<myProg> -c <MyConfig.ini>
This overrides the Cabal default location.
Without arguments I keep the Cabal default location because it's convenient
during development :)
On Thu, Dec 18, 2014 at 9:20 AM, Alan Buxton <alanbuxton at gmail.com> wrote:
>
> Oh that's cool. Is there a way to configure this in some file so that when
> I
> build just this application a particular datadir is used?
>
> -----Original Message-----
> From: Beginners [mailto:beginners-bounces at haskell.org] On Behalf Of
> Michael
> Orlitzky
> Sent: 17 December 2014 17:53
> To: beginners at haskell.org
> Subject: Re: [Haskell-beginners] Deploying a haskell application (not a
> webapp)
>
> On 12/17/2014 09:16 AM, Mateusz Kowalczyk wrote:
> >
> > Pretty sure the whole point of this thread is that the OP does not
> > want to build on the server.
> >
>
> Oh, sorry, I missed that. You can pass --datadir to Cabal's configure step;
> e.g.
>
> $ runghc Setup.hs configure --datadir=/usr/local/share/<your-app>
>
> I believe it's using /home/alan/.cabal/share as the default, but if you
> tell
> it to do otherwise, it will.
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20141218/87fed661/attachment.html>
More information about the Beginners
mailing list