transition to stack

This commit is contained in:
nek0 2016-01-05 01:57:32 +01:00
parent 1f88dbebd1
commit 2ebf3c4e6e
2 changed files with 214 additions and 18 deletions

View file

@ -66,30 +66,15 @@ get the source with
git clone https://github.com/nek0/eidolon.git
```
It's generally a good idea to create a sandbox for compiling. To do so `cd` into the project directory and invoke
build the source with
```bash
cabal sandbox init
```
If the sandbox generation fails, please make sure, you are using the latest version of `cabal istall`.
Then install all dependencies with the following command. This may lead you into dependency hell, as I am working with very new libraries. I am trying my best to avoid this.
```bash
cabal install --only-dependencies
```
After installing all dependencies you can configure and build the software with
```bash
cabal configure
cabal build
stack build
```
##Deploying
After compiling you will find an executable called `eidolon` in `dist/build/eidolon/`. Copy or link it anywhere you want. The executable needs to be accompanied by the folders `config` and `static` and their contents. It's best to copy them to your desired destination.
After compiling you will find an executable called `eidolon` in `.stack-work/dist/<arch>/Cabal-<version>/build/eidolon/`, where `<arch>` is your system architecture and `<version>` your current cabal version. Copy or link it anywhere you want. The executable needs to be accompanied by the folders `config` and `static` and their contents. It's best to copy them to your desired destination.
Also check `config/settings.yml` and set the values there accrding to your configuration. Especially the settings for elasticsearch are vital.

211
stack.yaml Normal file
View file

@ -0,0 +1,211 @@
flags:
time-locale-compat:
old-locale: false
packages:
- '.'
extra-deps:
- HDBC-2.4.0.1
- HDBC-postgresql-2.3.2.3
- HTTP-4000.2.23
- JuicyPixels-3.2.6.4
- MonadCatchIO-transformers-0.3.1.3
- ReadArgs-1.2.2
- SHA-1.6.4.2
- StateVar-1.1.0.2
- adjunctions-4.2.2
- aeson-0.10.0.0
- aeson-compat-0.3.0.0
- aeson-pretty-0.7.2
- ansi-terminal-0.6.2.3
- ansi-wl-pprint-0.6.7.3
- appar-0.1.4
- asn1-encoding-0.9.3
- asn1-parse-0.9.4
- asn1-types-0.3.2
- async-2.0.2
- attoparsec-0.13.0.1
- authenticate-1.3.2.11
- auto-update-0.1.3
- base-orphans-0.4.5
- base16-bytestring-0.1.1.6
- base64-bytestring-1.0.0.1
- basic-prelude-0.5.0
- bifunctors-5.1
- blaze-builder-0.4.0.1
- blaze-html-0.8.1.1
- blaze-markup-0.7.0.3
- bloodhound-0.10.0.0
- byteable-0.1.1
- byteorder-1.0.4
- bytestring-builder-0.10.6.0.0
- case-insensitive-1.2.0.5
- cereal-0.5.1.0
- chunked-data-0.2.0
- cipher-aes-0.2.11
- classy-prelude-0.12.5
- classy-prelude-conduit-0.12.5
- classy-prelude-yesod-0.12.5
- clientsession-0.9.1.1
- cmark-0.4.1
- cmdargs-0.10.13
- comonad-4.2.7.2
- conduit-1.2.6.1
- conduit-combinators-1.0.3
- conduit-extra-1.1.9.2
- connection-0.2.5
- contravariant-1.3.3
- convertible-1.1.1.0
- cookie-0.4.1.6
- cprng-aes-0.6.1
- crypto-api-0.13.2
- crypto-cipher-types-0.0.9
- crypto-random-0.0.9
- cryptohash-0.11.6
- cryptohash-conduit-0.1.1
- cryptohash-cryptoapi-0.1.3
- cryptonite-0.10
- css-text-0.1.2.1
- data-default-0.5.3
- data-default-class-0.0.1
- data-default-instances-base-0.0.1
- data-default-instances-containers-0.0.1
- data-default-instances-dlist-0.0.1
- data-default-instances-old-locale-0.0.1
- deepseq-generics-0.1.1.2
- digest-0.0.1.2
- distributive-0.4.4
- dlist-0.7.1.2
- dlist-instances-0.1
- easy-file-0.2.1
- email-validate-2.1.3
- enclosed-exceptions-1.0.1.1
- entropy-0.3.7
- exceptions-0.8.0.2
- extensible-exceptions-0.1.1.4
- fast-logger-2.4.1
- file-embed-0.0.9
- filemanip-0.3.6.3
- free-4.12.1
- haddock-library-1.2.1
- hashable-1.2.3.3
- hex-0.1.2
- highlighting-kate-0.6.1
- hjsmin-0.1.5.1
- hourglass-0.2.9
- hslua-0.4.1
- http-api-data-0.2.2
- http-client-0.4.26.2
- http-client-tls-0.2.2
- http-conduit-2.1.8
- http-date-0.0.6.1
- http-types-0.9
- http2-1.4.0
- imagemagick-0.0.3.5
- iproute-1.7.0
- kan-extensions-4.2.3
- keys-3.10.2
- language-javascript-0.5.14.2
- lifted-base-0.2.3.6
- memory-0.10
- mime-mail-0.4.11
- mime-types-0.1.0.6
- mmorph-1.0.4
- monad-control-1.0.0.4
- monad-logger-0.3.16
- monad-loops-0.4.3
- monads-tf-0.1.0.2
- mono-traversable-0.10.0.1
- mtl-2.2.1
- mtl-compat-0.2.1.3
- mutable-containers-0.3.2
- mwc-random-0.13.3.2
- network-2.6.2.1
- network-uri-2.6.0.3
- nonce-1.0.2
- old-locale-1.0.0.7
- old-time-1.1.0.3
- optparse-applicative-0.12.0.0
- pandoc-1.15.2.1
- pandoc-types-1.12.4.7
- parsec-3.1.9
- path-pieces-0.2.1
- pem-0.2.2
- persistent-2.2.4
- persistent-postgresql-2.2.1.2
- persistent-template-2.1.5
- pointed-4.2.0.2
- postgresql-libpq-0.9.1.1
- postgresql-simple-0.5.1.2
- prelude-extras-0.4.0.2
- primitive-0.6.1.0
- profunctors-5.1.2
- psqueues-0.2.0.3
- random-1.1
- regex-base-0.93.2
- regex-pcre-builtin-0.94.4.8.8.35
- resource-pool-0.2.3.2
- resourcet-1.1.7
- safe-0.3.9
- scientific-0.3.4.4
- securemem-0.1.9
- semigroupoids-5.0.0.4
- semigroups-0.18.0.1
- setenv-0.1.1.3
- shakespeare-2.0.7
- silently-1.2.5
- simple-sendfile-0.2.21
- skein-1.0.9.4
- socks-0.5.4
- split-0.2.2
- stm-2.4.4.1
- stm-chans-3.0.0.4
- streaming-commons-0.1.15
- stringsearch-0.3.6.6
- syb-0.6
- system-filepath-0.4.13.4
- tagged-0.8.2
- tagsoup-0.13.6
- tagstream-conduit-0.5.5.3
- temporary-1.2.0.3
- texmath-0.8.4.1
- text-1.2.2.0
- time-locale-compat-0.1.1.1
- tls-1.3.4
- transformers-base-0.4.4
- transformers-compat-0.4.0.4
- unix-compat-0.4.1.4
- unix-time-0.3.6
- unordered-containers-0.2.5.1
- utf8-string-1.0.1.1
- uuid-types-1.0.2
- vault-0.3.0.5
- vector-0.10.12.3
- vector-algorithms-0.7.0.1
- vector-instances-3.3.1
- void-0.7.1
- wai-3.2.0
- wai-app-static-3.1.4.1
- wai-extra-3.0.13.1
- wai-logger-2.2.4.1
- warp-3.2.0
- word8-0.1.2
- x509-1.6.3
- x509-store-1.6.1
- x509-system-1.6.3
- x509-validation-1.6.3
- xml-1.3.14
- xml-conduit-1.3.3
- xml-types-0.3.6
- xss-sanitize-0.3.5.6
- yaml-0.8.15.2
- yesod-1.4.2
- yesod-auth-1.4.11
- yesod-core-1.4.18.1
- yesod-form-1.4.6
- yesod-markdown-0.10.0
- yesod-newsfeed-1.5
- yesod-persistent-1.4.0.3
- yesod-static-1.5.0.3
- zip-archive-0.2.3.7
- zlib-0.6.1.1
resolver: ghc-7.10