
I add a command line parameter to my programs to specify the location of
config files:
<myProg> -c
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@haskell.org] On Behalf Of Michael Orlitzky Sent: 17 December 2014 17:53 To: beginners@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@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners